PDA

View Full Version : How to use allowblank property on combobox ?



Anup Rana
26 Nov 2010, 4:23 AM
I am using combobox and th user needs to select the value from the combobox .When user selects combobox value only then the form submit button should be enabled and the user can proceed further. I am also using allowblank property but its not working.
Can anyone help me out ??

griffiti93
26 Nov 2010, 7:10 AM
Be sure you set "allowBlank: true." Set the button's default config to "disabled: true." Then wire up to the combobox "change" event. In your event handler, set the button.enable();

Condor
26 Nov 2010, 7:50 AM
- Configure the combobox with allowBlank:false.
- Configure the form with monitorValid:true.
- Configure the submit button with formBind:true.
(only works if the submit button is actually a button (fbar) of the form)