Disable Buttons - Mendix Forum

Disable Buttons


Provide an Option to disable Button based on Condition . 


There are cases where you want to show a Disabled button based on certain condition rather than completely hiding it . 


To extend on Data view editable condition  in 10.7 . Any Button with in a dataview should have same options as any other input field .

3 answers

Yes I used above approach but I was proposing. justan idea to make this option available in the wudget itself 


You can achieve this by adding the class: 'disabled' dynamically based on your conditions.


However, keep in mind that disabled buttons can cause bad UX:




Hi, Naresh Agarwal 

Write a condition visibility instead of disable button it may be work