Topic: Trying to clear material validation on form reset
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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Open
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.8.0
- Device: All
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No
Related topics
Piotr Glejzer staff commented 6 years ago
Hi,
Your example is working well, do you have some other?
bvernon pro premium commented 6 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 6 years ago
https://mdbootstrap.com/snippets/ -- can you put this code on our snippets? Thanks.