I am using an ExtJs form having a file upload field in it. On selecting a file I am calling the submit() method of the form. But before submitting I am checking if the form is
Here's a much simpler solution:
form.query("field{isValid()==false}")