Opened 12 years ago

Closed 12 years ago

#7003 closed feature (wontfix)

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.

Change History (1)

comment:1 Changed 12 years ago by Scott González

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.

Note: See TracTickets for help on using tickets.