Contents |
Validation Rules
An overview of all possible validation rules used by ValidForm Builder.
Required
Usage
array(
"required" => true
);
Description
Set required to true to make the element required.
Minimum length
Usage
array(
// Insert at least 5 characters before this input is accepted
"minLength" => 5
);
Description
Set the minimum amount of characters that must be entered. This value needs to be an integer.
Maximum length
Usage
array(
// Insert a maximum of 200 characters, otherwise the input is not accepted.
"maxLength" => 200
);
Description
Set the maximum amount of characters that must be entered. This value needs to be an integer.

