-
Sencha User
BasicForm.reset() don't mark form field as valid, why?
Hi,
I create a from with several fields, this form contains a button that allows users to clear all fields. To do this I use reset function. I notice that when I call reset, fields that was mark as invalid remain invalid? Why and how can I reset form fields in order to achieve my goal?
Regards,
P.
-
Sencha User
-
Could you post your code as an example?
IIRC, resetting a form should also reset the validation (unless a submit has been successful, then invalidates the second time, etc).
Alternatively you could try basicForm's clearInvalid() method:
http://docs.sencha.com/ext-js/3-4/#!...d-clearInvalid
-
Sencha Premium User
Do the fields have "allowBlank:false" ?
-
Sencha User
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules