rb:multi-friend-input

Description

Renders a multi-friend form entry field just like the one used in the message composer. You can use the field inside an rb:request-form to select users for whom a request can be sent.

Output

Adds the following hidden tag inside the form for each user with their UID for the value.

<input type="hidden" value="123456789" name="ids[]"/>  


Attributes

optional width int The width of entry field. (default value is 350px)
border_color string The color of entry field border. (default value is #8496ba)
include_me bool Indicates whether or not to include the logged-in user in the form. (default value is false)
max int The maximum number of people that can be selected. (default value is 20)
exclude_ids array A comma separated list of user IDs to exclude from the selector.

Notes

  • When used inside a mock AJAX form, the ids array contains only the last UID in the multi-friend-input.
  • You can access all of the values of multi-friend-input using form serialize.
  • When used, it appears to disable the recipient input box on the popup for rb:share-button.