Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Excerpt | ||
---|---|---|
| ||
How Validation Works in PhixFlowValidation can be configured to check data as it is being entered and before completing an Actionflow. This could be from simply checking if a field has been completed, to checking for duplicate records. Validation is checked for the following events:
Applying ValidationWe recommend validation is applied at the table level to attributes as it is then automatically applied everywhere the attribute is used |
, see Adding Validation to Table Attributes. However, where a form field is backed by a relational attribute, the validation set on the table attribute is not used. |
For applying pre-set validation (e.g. mandatory, min/max length) to form fields on screens, see below, and for bespoke validation, see Custom Validation. Table of Contents
Form Field ValidationVideo Tutorial
Form Field Validation - Mandatory FieldSetting a form field as mandatory.
Form Field Validation - Minimum/Maximum Length
Form Field Validation - Matching a Given Pattern
Example PatternsSee Regular Expressions for details on how to create a pattern.
|
name | InvalidRegex |
---|
Note |
---|
In PhixFlow 11.1.4+, validations containing invalid regular expressions can be created but the validation tooltip for the associated form field(s) will display an invalid message. |
Editing an Existing Validation
To edit an existing validation:
Opening an existing ValidationOpen the table attribute that has thetitle | Editing Existing Validations |
---|
Actionflow Validation Options
Prevent Saving of Invalid Fields
A validation check is performed before running the Actionflow and will not run the Actionflow if the validation check fails. For example, when a user presses the Save button on a form, any validation on the form fields will be triggered, and stop the form being saved with validation errors.
The form will highlight the fields that have failed validation and will not allow the user to proceed until the validation issues have been resolved.
Allow Saving of Invalid Fields
Actionflows can be configured to run even if validation errors occur. For example, if a user does not complete all mandatory fields on a form, they can still save their progress and complete the form later.
The form will highlight the fields that have failed validation and will still give the option to save the form.