At first blush I haven't seen in any discussion or mention of how to get Chosen to work with autocomplete freetagging fields.

Have the maintainers looked into this?

Comments

ken hawkins’s picture

Assuming not, my current inkling would be to see how to use the Chosen liszt:updated event to update the field, hooking that into the taxonomy module.

From the documentation
http://harvesthq.github.com/chosen/


Updating Chosen Dynamically
If you need to update the options in your select field and want Chosen to pick up the changes, you'll need to trigger the "liszt:updated" event on the field. Chosen will re-build itself based on the updated content.

jQuery Version: $("#form_field").trigger("liszt:updated");

But that would only get us half way, the taxonomy_autocomplete would also need to be hooked into to pass the user's input.

xano’s picture

By default, Chosen works with <option> elements, which do not exist for autocomplete/free tagging fields, because those are text inputs.

Xaber’s picture

Dave-B’s picture

Does #2 mean that Chosen will never support freetagging?

If so, should this issue be marked as wont-fix?

kalman.hosszu’s picture

Status: Active » Closed (won't fix)

Chosen works with elements which don't exist in autcomplete fields.