Topic: Trying to clear material validation on form reset

bvernon premium asked 5 years 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 5 years ago

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


bvernon premium commented 5 years 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 5 years ago

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



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB jQuery
  • MDB Version: 4.8.0
  • Device: All
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No