Topic: Form validation
Jakub Mandra
staff premium answered 2 years ago
Belovol
pro answered 2 years ago
ppotter10
answered a year ago
Belovol's answer didn't work for me, but you can call a function reportValidity():
e.target.reportValidity()
This returns true if the form is valid and false otherwise. @staff: would be nice to document this.
Piotr Glejzer staff commented a year ago
Thanks for the report, we will add this to our docs. Have a nice day!
Answered
- User: Pro
- Premium support: No
- Technology: React
- MDB Version: 4.7.1
- Device: 4xIntel Core i7-4510U CPU @2 GHz
- Browser: Google Chrome V- 68.0.3440.8
- OS: openSUSE Leap 42.3
- Provided sample code: No
- Provided link: Yes