Solved

Conditionally set a button when a field IS NOT empty and IS empty

  • 28 September 2022
  • 1 reply
  • 339 views

Userlevel 1
Badge +9

Hello,

 

I am trying to setup two buttons (Approve/Reject) in a classic form that will enable and disable when needed. I want the button(s) to be disabled when a text field IS NOT empty and enabled when empty. 

icon

Best answer by bamaeric 28 September 2022, 22:57

View original

1 reply

Userlevel 5
Badge +13

You can accomplish this by creating a rule and applying it to one or both buttons. Here's how to configure the rule:


 



  1. Select the button and add a rule to the button.

  2. Configure the rule with these settings:

    • Name = Disable Button (or whatever else you select)

    • Rule Type = Formatting

    • Condition = not(isNullOrEmpty(Title))

      • Title is the name of your field.

      • This condition is built in the rule Formula Builder.



    • Check the Disable option



  3. You can then apply this rule to other button also so that you only have to create one rule.



 

Reply