With this workflow validator, you can compare a regular expression against a given field to check if it contains of match the regex.
To add 'Regex validator' to a transition:
- Click Edit for the workflow that has the transition you wish to add the validator on.
- In the Workflow Designer, select the transition.
- Click on Validator in the properties panel.
- Click on
Add
validator
. - Select
Regular Expression
Validator
from the list of validators. - Click on
Add
to add the validator on the transition. - Fill the form shown below and press 'Add' button.
Fields
Field – Text field that will be matched against the regular expression.
Regular expression – Regular expression that will be used in the selected field.
Match type – Select Full matches to require the text field to completelly match the regular expression. Select Contains to just check if the text of the custom field contains text that matches the regular expression.
Error Message – Set here the message you want to display o users when this validation fails