View Full Version : ComboBox & emptyText

25 May 2011, 9:19 AM
Hi I am new to ext and fairly new to javascript. If a user does not select a value from a comboBox the emptyText value is passed to the server. How can I throw an error on the client side, before the form data is submitted to the server? Thank you.

25 May 2011, 9:27 AM
Add submitEmptyText: false to your form.getForm().submit({<...config here...>}) call.

25 May 2011, 9:36 AM
Thanks, I'll try it out. Where in the API can I find available methods, like submitEmptyText, for the submit action? Thank you.

25 May 2011, 9:51 AM
Ext.form.Action.Submit (http://dev.sencha.com/deploy/ext-3.3.1/docs/?class=Ext.form.Action.Submit) config options.