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
- Open the Companies Form screen from the screen's home page. This ensures there is no data selected.
- Ensure your screen is
Insert excerpt |
---|
| _unlock |
---|
| _unlock |
---|
nopanel | true |
---|
|
ed. - Double -click on the Company Name field to open its
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | style |
---|
nopanel | true |
---|
|
- Click on the
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
nopanel | true |
---|
|
- In the Validation section:
Insert excerpt |
---|
| _check_box_tick |
---|
| _check_box_tick |
---|
nopanel | true |
---|
|
Mandatory and toggle it on Insert excerpt |
---|
| _toggle_on |
---|
| _toggle_on |
---|
nopanel | true |
---|
|
- your changes
- Close and reopen the Companies Form to ensure the new formatting rule is applied.
- the screen. Now the field label has an asterisk.
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.
On the Companies Form, right-click on the Save button and choose Display ActionflowOn the Actionflow, click Insert excerpt |
---|
_property_settings | _property_settings | nopanel | true |
in the toolbarToggle on Insert excerpt |
---|
_toggle_on | _toggle_on | nopanel | true |
Perform Validation before running Insert excerpt |
---|
_save | _save | nopanel | true |
the changesClose the Companies Form and reopen it ensure the changes take affectFill in any fields but leave Company Name blankPress Save- An error message will show with Validation Failed
- The Company Name field border will appear red with an error message on mouse over
Exercise
- On your Companies Form, click on the Company Name field header
- Note: You may need to click on it twice to ensure the
Insert excerpt |
---|
| _property_settings |
---|
| _property_settings |
---|
nopanel | true |
---|
|
that opens is for Static Text
- On the
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | style |
---|
nopanel | true |
---|
|
, add a CSS property, which applies a red text colour when the mouse moves over the Company Name header- CSS Tag: color
- Value: red
Expand |
---|
|
|