Nintex Forms allows a Forms Designer to set conditional formatting and validation within their task form using the outcome values (Approve, Reject and the other custom outcomes) the form designer may have made in the Flexi-task action.
For information on how to configure the Formatting Rule, please read the following post: Using validation rules to ensure a comments box is not left empty
However, one question that comes up is, why is the Formatting/Validation rule written around an outcome equaling a number and not the value 'Approve' or 'Reject'?
For example, in a Nintex Task Form, you may see a Validation or Formatting Rule that looks like this:
Well, what is the '1' that we are talking about? Why not the term 'Approve'?
In the Nintex Workflow Config database, you will find a table called 'dbo.ConfiguredOutcomes'. That table stores the Id as well as the associated Name for the outcomes used in the 'Decision' control of the Nintex Task Form.
When writing a Formatting/Validation rule on a Nintex Task Form, you will want to use the 'Id' of the appropriate outcome. You can also see the outcome by adding a Calculated Value Control to your Nintex Form, and assigning the value of the Calculated Value control to that of the Named Control 'Decision'. Once the form is used in a workflow, you will see the 'Id' number appear in place of the Calculated Value control.