Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem
Some people prefer Chosen (https://harvesthq.github.io/chosen/) over Select2 (https://select2.github.io/).
Solution
The Webform module can easily support both libraries without any conflicts.
Notes
- Select2 will be recommended default library.
- Chosen integration will be very basic.
- At a later date support for Selectize can be added.
- My clients needs chosen support now.
Tasks
- Add chosen library.
- https://github.com/harvesthq/chosen
- https://cdnjs.com/libraries/chosen
- Add #chosen to Select element
- Create webform.element.chosen.js
- Add some examples
Comment | File | Size | Author |
---|---|---|---|
#10 | add_optional_support-2871606-10.patch | 13.42 KB | jrockowitz |
| |||
#6 | add_optional_support-2871606-6.patch | 12.01 KB | jrockowitz |
#4 | add_optional_support-2871606-3.patch | 11.94 KB | jrockowitz |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #10
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #12
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented