Add ActiveWhen property for Buttons - Mendix Forum

Add ActiveWhen property for Buttons

2

Several times, situations arise when we need to disable the the Buttons on the page based on some condition.
 

Obviously, it is possible to hide the Button based on condition using the VisibleWhen property. But, sometimes user may get confused as Buttons appears and disappears. So, its better to disable instead of hide.

asked
2 answers

Thank you for your reply! Yes, this can also be done. But, if we can have property similar to VisibleWhen, it will be much easier to achieve such requirement.

Created

you can use a css class with dynamic classes based on a value.

use the following within css class f.e.:

.btn-disable{

pointer-events: none;

}

Created