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