Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

FormValidator's refresh method does nothing (at least visually) in the form.


This is a typical scenario: the user selects a record to edit, there are required information that wasn't filled in that record, but as the user didn't touch the form yet, no error is shown. Once the user focus on a required field and modify it or not, the validation applies. If the user hits the "Cancel" button, it means, he does not want to save the modified record, the form should refresh itself, and hide the validation error because now the form is suppose to display initial data, without modifications.


We cannot use HTML type="reset" button because there are additional logic to be done when user hits "Cancel".


To reproduce: 

Change email to something invalid, hit "Cancel", validation error is still there because formObj.refresh() isn't working.


We have several forms without proper validation because we are not capable of doing it for now. Thanks in advance.