4

We have a circumstance where we have a multi select custom field with around 200 options. We then have this field loaded into a Drupal webform (for this project we need to use Webforms).

The standard Drupal Webform field options only allow either a CTRL click multi select or radio buttons, neither of which will work with that many options.

We have also tried a module called Chosen (https://www.drupal.org/project/chosen) but have failed to get this to work with the Webform. Has anyone got any experience of getting Chosen working with Webforms or an alternative approach?

Oliver

2
  • Does Multiselect work with Webform? Even then, this sounds like bad UX; an autocomplete widget or hierarchical select might be better.
    – choster
    Jan 26, 2016 at 15:24
  • Agree that Chosen is the way to go -- if you can't get it working with a standard Drupal Webform, you may want to post this in the Drupal StackExchange. (This issue may be related: drupal.stackexchange.com/questions/129489/… )
    – Laryn
    Jan 26, 2016 at 16:28

1 Answer 1

3

I've written a small module that allows you to use the select2 widget on your webforms:

https://github.com/colemanw/webform_select2

Enjoy!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.