Topic: How do I get Form Validation state? like $('#form-id').validation() ? I do need to return a true or false

ktakiya priority asked 10 months ago

Expected behavior Hi team,

Can I know how to get the state after form validation is okay to submit? Thank you so much!

Actual behavior

Resources (screenshots, code snippets etc.)

Michał Duszak staff answered 10 months ago


it highly depends on your approach. In examples given in our docs, the checkValidity() method actually returns a boolean value. See the snippet below:

It's a basic form validation in which we console.log() the checkValidity() returned value.

ktakiya priority commented 10 months ago

Thank you so much, Yes, I already found it in documents.

Please insert min. 20 characters.


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



Specification of the issue

  • User: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: Mac
  • Browser: FF
  • OS: MacOS
  • Provided sample code: No
  • Provided link: No