rb:friend-selector

Description

Renders a predictive friend selector input for a given person. You can use this tag inside an rb:request-form to select users for whom a request can be sent.


Attributes

optional uid int The user whose friends you can select. (default value is the uid of the currently logged-in user)
name string The name of the form element. (default value is friend_selector_name)
idname string The name of the hidden form element that contains the uid of the selected friend. If used inside an rb:request-form, do not override this default. (default value is friend_selector_id)
include_me bool Indicates whether or not to include the logged in user in the suggestions. (default value is false)
exclude_ids array A list of user id's to exclude from the selector.

Notes

  • If the user enters a name that does not match any of his friends, idname will be set to an empty string (instead of a uid number) and name will be set to the entered text.
  • If no value is entered then idname is not added as a hidden field in the POST.