ExtJs: Form isValid() is false. But how to know why the form is invalid?

后端 未结 2 347
后悔当初
后悔当初 2021-01-31 19:56

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

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-31 20:43

    Here's a much simpler solution:

    form.query("field{isValid()==false}")
    

提交回复
热议问题