Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Insert excerpt
_Banners
_Banners
nameactionflow
nopaneltrue

2. Setting

How Validation Works in PhixFlow

Validation 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 using a lookup to a 

Insert excerpt
_action_view
_action_view
nopaneltrue
 node.

Validation is checked On Blur, which means once the user leaves the field the validation is run. It is checked when an existing record is loaded. It can also be checked when the user submits their data via a form.

Table Validation

We recommend validation is applied at the table level to attributes and is then automatically applied everywhere the attribute is used. See Table Attribute Validation.

However, it is possible to set validation on forms.

Form Field Validation - Video Tutorial

Iframe
srchttps://youtube.com/embed/nI4OrR5fmTE?&rel=0&ytp-pause-overlay=&list=PLbPt6SI1Zhb9JAD6TfD-qGC6vzZXOznvn
width680px
titleAdding Form Field Validation
height400px

Actionflow Validation Options

Prevent Saving of Invalid Fields

Actionflows can be configured to perform a validation check before running the Actionflow and not complete 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.

  1. Open the Actionflow
  2. In the Settings above the canvas, toggle on 
    Insert excerpt
    _toggle_on
    _toggle_on
    nopaneltrue
     Validate
    1. Image Added

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.

  1. Open the Actionflow
  2. In the Settings above the canvas, click Properties
    1. Image Added
  3. In the Basic Settings, toggle on 
    Insert excerpt
    _toggle_on
    _toggle_on
    nopaneltrue
     
    Allow to Run with Validation Errors 

Image Added