To ensure that a case contains relevant data before it enters a specific stage, validate the property values that users provide. For example, you can check if a job applicant provides contact details and working experience before a job application case enters the stage in which a manager approves or rejects the job application.
- In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.
- On the Data model tab, click Validations.
- In the cell that corresponds to the row of the field to validate and the column of the stage for which you want to perform validation, click Add entry validation.
- In the Stage entry validation window, in the Message field, enter the text to display when user input meets the validation conditions at run time.
-
Define the validation conditions for a field on the form:
- Optional:
To change the field that you want to validate, in the list of fields, select the
name of the field.
By default, the system provides the field that you select in step 3.
- In the comparator list, select the test that you want to perform on the field.
-
In the value field, enter or select a value to compare against the user
input.
The Select values option displays the fields and values from your form that you can use in the condition.
- Optional:
To change the field that you want to validate, in the list of fields, select the
name of the field.
- Optional:
To create a condition with multiple validation parameters, add a logical operator to
the condition:
For example: In a recruitment form, the user must indicate the time of employment at a specific company by entering dates in the From and To date type fields. To ensure that the start date is before the end date, and that the end date is after the start date, you can configure a validation condition with the AND logical operator.Choices Actions Ensure that the condition passes when all properties meet the criteria - On the right side of the row, click the Add a row icon.
- In the operator list, select and.
- In the list of fields, select the name of the field that you want to validate.
- In the comparator list, select the test that you want to perform on the field.
-
In the value field, enter or select a value to compare against the user
input.
The Select values option lists the fields and values from your form that you can use in the condition.
Ensure that the condition passes when either property meets the criteria - On the right side of the row, click the Add a row icon.
- In the operator list, select or.
- In the list of fields, select the name of the field that you want to validate.
- In the comparator list, select the test that you want to perform on the field.
-
In the value field, enter or select a value to compare against the user
input.
The Select values option lists the fields and values from your form that you can use in the condition.
- Optional:
To select additional stages for which you want to perform the validation, in the
Validate upon entering list, select the stages.
By default, the system selects the check box for the stage that you select in step 3.
- Click Submit.
- Optional: To define more validation conditions, in the cell click Add another validation, and then repeat steps 4 through 8.
- Click Save.