Clear error messages

I would like to know how to clear error messages in case if user decided to cancel the form submission after he/she tried with invalid data? I tried formvalidator.destroy() but message did not dissapear.

1 Reply

SN Sevvandhi Nagulan Syncfusion Team March 3, 2020 07:09 AM UTC

Hi Arjuna, 

Greetings from Syncfusion support. 

We have checked the reported scenario. You can call the form reset while canceling the form submission instead of destroy method. Kindly refer the below code, 

public onCancel(): void { 
    this.formObject.reset(); 
  } 
   
  
Please find the sample below, 


Regards, 
Sevvandhi N 


Loader.
Up arrow icon