Form field errors persists

0 Answers 114 Views
Form
Francis
Top achievements
Rank 1
Iron
Iron
Iron
Francis asked on 25 Apr 2022, 02:48 PM

Why and on what scenario would the form fields error state persist?

After an error, the validation summary and the error fields' messages get displayed. Clear event correctly renders (removes the validation messages). Then filling the correct values and submitting the form produces the expected result but also displays the field validation messages from the previous validation (the summary message do not).  So I created a clear handler as follows but it behaves the same:


function formClear(e) {
   const frm = $('#myForm').data('kendoForm');
   frm.clear();
   frm.validator.reset();  //introduced this as the above also did not behave correctly.
}

Mihaela
Telerik team
commented on 28 Apr 2022, 12:27 PM

Hi Francis,

Would you please update the REPL example below based on the setup at your end to replicate the behavior you are experiencing?

https://netcorerepl.telerik.com/ccEycMFw22Ixzfur33

Alternatively, consider sharing a runnable application where I can observe the issue. I will test it locally and follow up with the respective suggestion.

 

No answers yet. Maybe you can help?

Tags
Form
Asked by
Francis
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or