PDA

View Full Version : disableOnHide on Form Fields



echowang
23 Apr 2014, 8:34 AM
Can anyone please tell me where the disableOnHide() method is? I searched 4.2 API doc, didn't find it. I saw it from this post: http://www.sencha.com/forum/showthread.php?81461-AllowBlank-false-and-Hidden-true-Form-Submit.

Thanks in advance for your help.

scottmartin
23 Apr 2014, 8:54 AM
I can see a case for a disableOnHide: true

A point was being made for a possbiel need for that property

Perhaps submitValue config will be of use?
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.form.field.File-cfg-submitValue

echowang
23 Apr 2014, 9:20 AM
What I really need is to disable the form fields validation when the form fields are hidden. And enable validation when the fields are visible.

Do you have a recommended way to do it? Maybe override the Ext.form.field.Base isValid method?


A point was being made for a possbiel need for that property

Perhaps submitValue config will be of use?
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.form.field.File-cfg-submitValue