The Validation tab is available for Control types that can contain a value. Validation allows specifying conditions that must be satisfied before specific actions are allowed to proceed; for example, you can specify conditions that can be checked before a Button can navigate off the Page, and the transition will be prevented if this Validation fails for any configured Field. Validation is only checked when a Field with Validate Page enabled is triggered.
Validation is frequently mixed with Formatting to ensure that data has been recorded in a valid state before leaving the Page, or triggering a database query or API request.
There are four core Validation types available in Intelligent Agent:
Validation Type
Description
Alpha Only
Restricts the Field's value to only contain basic Latin alphabet characters (e.g., A-Z without accents or diacritics). Any numbers, symbols, or non-Latin characters will cause Validation to fail.
Compulsory Field
The Field must contain at least one character, or it will fail Validation.
Email Address
The Field must contain an email-like string (a@b.c), or it will fail Validation. Note that due to the extremely wide-ranging scope of valid email address formatting, this Validation will not protect against every invalid email address.
Monetary Value
The Field must have a value that looks like a non-currencied monetary value (1234.56), or it will fail Validation.
Notes
If Compulsory Field isn't selected, then Validation will succeed if the Field is empty. Multiple Validation conditions can be added to each Field, so Compulsory Field can be combined with any other Validation to ensure the Field is populated with valid data.
If a Field is hidden or suppressed, it will not be checked for Validation. This allows complex Pages to be constructed with differing Validation requirements depending on agent choices and dynamic content, by simply hiding the unwanted Fields prior to triggering Validation.
It is possible to alter the default appearance of Fields that are failing Validation through Stylesheets by modifying the validation-failure class.
Additional Validation types can be added on request, please contact your Intelligent Agent vendor with your requirements.