Form validation error

Hello, I have a form in the modal to edit product data. There is one field as required. Submitting form without filling that value will give me error, that this field is required but when I close that modal and reopen it for another product, that error remains there although value is there. Is there any way to reset form validations on modal close?
Screenshot (98)
Screenshot (99)

Thank you

Hello, I found a solution for this using productName.clearValidationState() in JavaScript query and triggering it at modal close time.

1 Like