Disable Buttons - Mendix Forum

Disable Buttons

7

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 .

asked
4 answers

It would be great to have that option along with a possibility to apply an additional tooltip for the disabled button highlighting why its disabled, this would prevent the bad UX problem mentioned by others in the comments.

Would be great to see this feature, currently one always has to create two buttons with different tooltips and conditional visibility.

Created

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

Created

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:

https://uxplanet.org/disabled-buttons-in-user-interface-4dafda3e6fe7

 

Created

Hi, Naresh Agarwal 

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

Created