246
| Guest Management
ClearPass Guest 3.9 | Deployment Guide
Validation errors are displayed to the user by highlighting the field(s) that are in error and displaying the
validation error message with the field:
All fields must be successfully validated before any form processing can take place. This ensures that the
form processing always has user input that is known to be valid.
To validate a specific field, choose a validator from the drop-down list. See
“Form Field Validation
Functions”
in the Reference chapter for a description of the built-in validators.
The Validator Param is the name of a field on the form, the value of which should be passed to the validator
as its argument. This could be used to validate one field based on the contents of another. However, in most
deployments this does not need to be set.
Set the Validator Param to its default value, “(Use argument)”, to provide a fixed value as the argument to
the validator.
The Validator Argument is used to provide further instructions to the selected validator. Not all validators
require an argument; a validator such as
IsValidEmail
is entirely self-contained and will ignore the
Validator Argument. Validators such as
IsEqual
,
IsInRange
and
IsRegexMatch
use the argument to
perform validation.
Examples of Form field Validation
Example 1
– To create a form field that requires an integer value between 1 and 100 (inclusive) to be
provided, use the following settings in the form field editor:
Use the PHP syntax
array(1, 100)
to specify the minimum and maximum values for the
IsInRange
validator. After saving changes on the form, this value will be internally converted to the equivalent code:
array (
0 => 1,
1 => 100,
)
The form field will contain an integer value, so you should set the field’s type to Integer when creating it.
Summary of Contents for ClearPass Guest 3.9
Page 1: ...ClearPass Guest 3 9 Deployment Guide ...
Page 32: ...32 Management Overview ClearPass Guest 3 9 Deployment Guide ...
Page 178: ...178 RADIUS Services ClearPass Guest 3 9 Deployment Guide ...
Page 316: ...316 Guest Management ClearPass Guest 3 9 Deployment Guide ...
Page 410: ...410 Administrator Tasks ClearPass Guest 3 9 Deployment Guide ...
Page 414: ...414 Administrator Tasks ClearPass Guest 3 9 Deployment Guide ...
Page 423: ...ClearPass Guest 3 9 Deployment Guide Hotspot Manager 423 ...
Page 440: ...440 High Availability Services ClearPass Guest 3 9 Deployment Guide ...
Page 518: ...518 Index ClearPass Guest 3 9 Deployment Guide ...