Wednesday, July 1, 2015

Get invalid fileds/components list from ExtJS form when the form.isValid() returns false

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