To list the invalid fileds/components from ExtJS form when the form is inValid (form.isValid() == false), use the below script,
So the variable invalidFields will hold the invalid fileds/components list.
- var formPanel = this.down('form');
- var form = formPanel.getForm();
- var invalidFields = form.query("field{isValid()==false}");
No comments:
Post a Comment