Skip to main content
Nintex Community Menu Bar

Configuring a Task Form Rule Based on Approved or Rejected Status

  • February 15, 2022
  • 0 replies
  • 125 views

butlerj
Nintex Employee
Forum|alt.badge.img+20

TOPIC

In some scenarios functionality is required to show/hide controls and much more based on if a task the task outcome is Approve or Reject.
 
** It is intuitive that Form Designers would think that having a rule such as:
equals(Decision,"Approve") would suffice but this is not the case. **
 

INSTRUCTIONS

By default the outcome of the Decision control is an integer. 

Approve is 1 and Reject is 2.
This means the rules would be:
equals(Decision,1) 
or 
equals(Decision,2)

ADDITIONAL INFORMATION

By default Nintex Task forms have a named choice control called Decision to store the outcome of the task. 

As discussed above the output of the choice control is an integer. When additional outcomes are added the next integer is not always 3 especially when outcomes have been added and removed.  While designing the form to find out what the output of the decision control is for each outcome add a calculated value control to the form that references the decision named control.  Publish the workflow and run it. Choose each outcome to see the integer in the calculated control.  A rule can now be accurately configured for the appropriate outcome.