PDA

View Full Version : How to ignore invisible field validation during form data submit



Zinnia
25 Jul 2013, 10:27 PM
Hi ,

I have a form panel having fields like textfield and radio buttons.There are some conditions to hide textfield as per the radio button value.

have added custom validation to textfield.Suppose i have enter a invalid value to a text filed, then i clicked the radio button. as per my condition that invalid text field is now invisible.

Except that invisible field all other fields are valid. Now i want to submit the form data.

Is it possible to ignore the invisible field while submitting the form panel data.?

Thanks

Gary Schlosberg
28 Jul 2013, 9:51 PM
Perhaps you could disable the fields instead of hiding them? Disabled fields do not get posted to server. Here's a relevant discussion: http://www.sencha.com/forum/showthread.php?152200

Zinnia
28 Jul 2013, 10:20 PM
Thanks Gary for your response. But i need this functionality for invisible field only.

Siji
29 Nov 2017, 2:33 AM
I think you could both disable and hide the component.