Questions tagged [select2]

The tag has no usage guidance.

3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
153 views

How do you select a value of an EntityRef Select2 using jQuery?

I have a scenario where a user selects a row of data to edit and I want an EntityRef Select2 box to be populated with a piece of information from that row. The EntityRef select2 widget works for ...
1
vote
0answers
1k views

ngChange event fired twice when using multi-select with crmUiSelect

I'm trying to use CiviCRM's crmUiSelect AngularJS directive to create a select2 element in a form. I want to call a function in my controller when the user changes this element, so I'm using the ...
0
votes
0answers
7 views

Is it possible to pass optgroup to selection option list for select2 display?

Select2 supports optgroup wrappers to nest options. See: https://select2.org/options Is it possible to pass these to the fieldOptions hook? Use case -- I have a custom field for which I'll populate (...