Reviewed & tested by the community
Project:
Webform Autocomplete
Version:
7.x-2.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2019 at 15:20 UTC
Updated:
14 Nov 2019 at 08:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
paulvandenburg commentedThis patch adds the mentioned functionality.
It is currently only compatible with the taxonomy terms options source.
The necessary module_exists checks and form API states are used to make sure you only see the new setting if it is applicable.
I've tested it with a list of 600+ terms.
To use this new feature you need to install the JS library (unzip the latest release (1.8.7) in your library folder) and enable the chosen module.
If you don't want chosen suddenly appearing in other places in your Drupal install, modify (or empty) the selection setting here: /admin/config/user-interface/chosen
This new feature forces Chosen to act on the autocomplete field, so your chosen filter here is not important.
I'd also recommend enabling this option: "Search also in the middle of words"
Comment #3
paulvandenburg commentedChosen does not handle the mobile view, so users on mobile get a huge dropdown instead of the autocomplete.
So this went back to the drawing table. I've extended the previous solution to now support 2 preload strategies.
The Chosen option is only visible if the chosen module is enabled, otherwise you only see the default (none) and the html5 variant.
Comment #4
joshahubbers commentedTested en works fine.