Skip to main content

Search and Top Navigation

#7003 closed feature (wontfix)

Opened February 17, 2011 01:46AM UTC

Closed February 17, 2011 01:52AM UTC

Option to Limit Text in Autocomplete to Valid Choices

Reported by: texinwien Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.autocomplete Version: 1.8.9
Keywords: Cc:
Blocked by: Blocking:

It would be very helpful if the autocomplelete control had an option that made it possible to only allow one of the valid list-choices to be entered in the corresponding text box.

I see an autocomplete as an advanced select / drop-down. The control should make it easier to input a valid choice from a list of choices. Having an autocomplete that allows the user to enter any text they'd like isn't very helpful, in most cases.

Attachments (0)
Change History (1)

Changed February 17, 2011 01:52AM UTC by scottgonzalez comment:1

resolution: → wontfix
status: newclosed

You can do this very easily with the change callback, if ui.item exists, then a choice was made. You'll want to combine that with the autoSelect extension. You can also see an example of how to do this in the combobox demo.