Regular Expression Condition
Use the Regular Expression Condition to make a transition unavailable if a text field input does not match a regular expression. For example, you may want to use this condition to ensure:
- a field contains only letters and numbers. You could use
^[A-Za-z0-9]*$when you enter the regular expression. - a US Social Security field is populated in the correct format. You could use
^(?!666|000|9\d{2})\d{3}-(?!00)\d{2}-(?!0{4})\d{4}$when you enter the regular expression. - a UK Postcode field is in the correct format. You could use
^(GIR ?0AA|[A-Z]{1,2}\d[A-Z\d]? ?\d[A-Z]{2})$when you enter the regular expression.
Warning: This condition is only available on text fields
Text fields supported include:
- System fields - Description, Environment, and Summary
- Custom fields - Text Field (single line) and Text Field (multi-line)
You can add this condition to any transition in a workflow that allows conditions.