plone / plone.formwidget.autocomplete

z3c.form widget for Plone using jQuery Autocomplete
https://pypi.org/project/plone.formwidget.autocomplete
2 stars 12 forks source link

Autofill input box with the term title instead #2

Closed lentinj closed 12 years ago

lentinj commented 12 years ago

User only sees term titles, so use the titles too when autocompeting.

NB: This is a bit of a hack so we don't have to touch jquery.autocomplete code. Strictly speaking there's nothing wrong with the original parse(), the form field values should be the token. However, in our other hooks into the code we ignore value already, the only place it gets used is to autocomplete.

A more correct fix would be to add the ability to customise what receiveData() sends to autoFill().

...and while you're there make autoFill() actually check what it's autocompleting, and rewrite the rest of the widget :)