Topic: How to disable form submission on errors

Kannan free asked 6 years ago


Hi I have purchased the pro version for MDBootstrap 3. I am able to setup error and success messages for length validation in input fields. But I am unable to
  • check for 'required' validation in text fields. i.e., if the value is not entered, it should show error
  • detect form invalid status so that the submit button is disabled
Thanks

Adrian Sawicki free answered 6 years ago


Hi Kannan, If you use required : <input id="example" type="text" class="validate" required> it should show "please fill out this input" message. To make submit button disabled until a user will fill in required inputs you should create a function, which will check the status of each required input. Here is a link to a page, which might be helpful for you : Link Adrian

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags