Skip to main content
Nintex Community Menu Bar
Solved

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

  • September 28, 2022
  • 1 reply
  • 509 views

Forum|alt.badge.img+11

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. 

Best answer by bamaeric

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.

 

1 reply

bamaeric
Forum|alt.badge.img+14
  • Apprentice
  • Answer
  • September 28, 2022

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.