Topic: Disabled Button for from validation

jay2jam pro asked 4 years ago


is there a way to disable button, until form is not valid?

Rgds Stefan

jay2jam pro answered 4 years ago

This is doing the job :-)

Maybe also interesting for you :-)

Mikołaj Smoleński staff commented 4 years ago

Thanks for letting us know, Stefan!


jay2jam pro answered 4 years ago

Hi, isn't there a function or a return. When i try this:


i always get an undefined. Also when the form is valid or no. Normally i should get something like true or false, or not?

When i add:

         <div class="valid-feedback">
                     Looks good!

It is also display:none.

Rgds Stefan

Mikołaj Smoleński staff answered 4 years ago

Hi there,

There is a way, but You'll have to code Your own form verification functions and add 'disable' attribute to button conditionally.

Best regards

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: Pro
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 4.8.1
  • Device: MAC
  • Browser: CHROME
  • OS: Moave
  • Provided sample code: No
  • Provided link: No