PDA

View Full Version : Dont allow users to submit data not include in combobox dropdown



JsNoob
30 Oct 2012, 6:24 PM
Hi, I have combobox and I would like prohibit the user to input data which are not present in the dropdown.

I tried using readOnly:true on the combobox, but it will defeat the purpose of the type ahead function of my combobox. Can you give me suggestion to go about this?

Regards,
JsNoob

evant
30 Oct 2012, 6:29 PM
See: http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.ComboBox-cfg-forceSelection

You may also want to look at: http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.Picker-cfg-editable

JsNoob
30 Oct 2012, 6:32 PM
Thank you very much Evant