Amigopod 3.7
| Deployment Guide
Guest Management |
173
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,
)
With these validator settings, users that enter an invalid value will now receive a validation error message:
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 Amigopod 3.7
Page 1: ...Amigopod 3 7 Deployment Guide...
Page 14: ...14 Amigopod 3 7 Deployment Guide...
Page 30: ...30 Management Overview Amigopod 3 7 Deployment Guide...
Page 108: ...108 RADIUS Services Amigopod 3 7 Deployment Guide...
Page 132: ...132 Operator Logins Amigopod 3 7 Deployment Guide...
Page 240: ...240 Guest Management Amigopod 3 7 Deployment Guide...
Page 332: ...332 Administrator Tasks Amigopod 3 7 Deployment Guide...
Page 336: ...336 Administrator Tasks Amigopod 3 7 Deployment Guide...
Page 345: ...Amigopod 3 7 Deployment Guide Hotspot Manager 345...
Page 362: ...362 High Availability Services Amigopod 3 7 Deployment Guide...