How to Enable and disable DELETE Button?

0
Hi all,   I want to delete an Organization based on YES/NO. It should be in grey color( i.e disabled) if User clicks NO, It should be enabled if user clicks YES. I have tried using visiblity based on attribute value. But, Button is not visible if user clicks NO.   Thanks in advance!
asked
1 answers
0

To make any button disabled you:

  • Open the button properties
  • On top of the popup select the appearance tab
  • under the common section you find the ‘class’ attribute, you set this to ‘disabled’:

In your example you can have a second delete button that is disabled and is only visible when the ‘Deleted’ Boolean is set to false.

You can also use a dynamic class so you only have one button looking like this:

if $currentObject/Deleted then
''
else
'disabled'

 

answered