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  Unlocked.
  3. Double -click on the Company Name field to open its  Styles tab
  4. Click on the  Properties tab
  5. In the Validation section:
    1.  Tick Mandatory and toggle it on 
  6.  Apply your changes
  7. Close and reopen the Companies Form to ensure the new formatting rule is applied.
  8.  Lock the screen. Now the field label has an asterisk.

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  Properties that opens is for Static Text
  2. On the  Styles tab, 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
 Show me how