Administrator Guide

Examples of Form field Validation
Example 1 Integer Value Between 1 and 100 (Inclusive)
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 (see "Form Field Editor " on page 307):
Figure 238 Form Field Editor, Form Validation Properties Area, Example Range of Integer Values
The form field will contain an integer value, so you should set the field's type to Integer when you create it.
In the Validator field, to specify the minimum and maximum values for the IsInRange validator, use the PHP
syntax array(1, 100). After saving changes on the form, this value will be internally converted to the
equivalent code:
array (
0 => 1,
1 => 100,
)
With these validator settings, users that enter an invalid value will now receive a validation error message:
Figure 239 Example Validation Error Message for an Invalid Range Value
Furthermore, be aware that blank values, or non-numeric values, will result in a different error message:
Figure 240 Example Validation Error Message for a Missing or Non-Numeric Entry
Dell Networking W-ClearPass Guest 6.6 | User Guide Configuration | 325