Trying to clear material validation on form reset

web
mobile

Topic: Trying to clear material validation on form reset

bvernon pro asked a year ago

Trying to figure out how to clear the validation information when I do a form reset (so that it looks like it does when the form loads). If we click the create configuration and get validation errors (or success), when we reset the form they stay there and I want to clear them.


Piotr Glejzer staff commented a year ago

Hi,
Your example is working well, do you have some other?


bvernon pro commented a year ago

If you click the Create Configuration, it will do that validation as expected and result with a red underline and X icon. Then when you click the Reset Data button I am trying to figure out how to clear the red underline and X so the form look the same as it did when it was first loaded (and no validation visualizations). I have tried resetting the form and the validator, however no luck. I'm sure I'm overlooking something simple.


Piotr Glejzer staff commented a year ago

https://mdbootstrap.com/snippets/ -- can you put this code on our snippets? Thanks.


Please insert min. 20 characters.
Status

Open

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.8.0
  • Device: All
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No