This will build a form for the user model with a multiselect element containing all Projects as options and automatically select any already associated projects.
You can also specify a custom collection of options and the name of the property used for the <option> labels:
associatedModelsSelect
will build a multiselect form field based on a relation on theform
's model.For example:
This will build a form for the user model with a multiselect element containing all
Project
s as options and automatically select any already associated projects.You can also specify a custom collection of options and the name of the property used for the
<option>
labels: