19. Data Validation

19. Data Validation

 

Introduction

Validation can be added to specific fields to check data as it is entered and before completing an Actionflow. Examples of validation include, checking if a field:

  • has been completed

  • contains certain numbers, letters or special characters

  • is in a desired format, e.g. a website or email address

  • and more...

Mandatory Fields

  1. Open the Companies Form screen from the screen's home page. This ensures there is no data selected.

  2. Ensure your screen is

    ed.

  3. Double -click on the Company Name field to open its 

  4. Click on the 

  5. In the Validation section:

    1.  Mandatory and toggle it on 

  6.  your changes

  7. Close and reopen the Companies Form to ensure the new formatting rule is applied.

  8.  the screen. Now the field label has an asterisk.

Perform Validation Before Saving

Note: This is for PhixFlow versions pre 10.1 only.

To ensure users cannot save the Companies Form until all validation requirements have been complied with, the Actionflow on the Save button must be updated.

  1. On the Companies Form, right-click on the Save button and choose Display Actionflow

  2. On the Actionflow, click 

     in the toolbar

  3. Toggle on 

     Perform Validation before running

  4.  the changes

  5. Close the Companies Form and reopen it ensure the changes take affect

  6. Fill in any fields but leave Company Name blank

  7. Press Save

    1. An error message will show with Validation Failed

    2. The Company Name field border will appear red with an error message on mouse over

Exercise

  1. On your Companies Form, click on the Company Name field header

    1. Note: You may need to click on it twice to ensure the

       that opens is for Static Text

  2. On the

    , add a CSS property, which applies a red text colour when the mouse moves over the Company Name header

    1. CSS Tag: color

    2. Value: red