Contents |
Error handlers
An overview of all possible error handlers used by ValidForm Builder.
Required
Usage
array(
"required" => "This field is required."
);
Description
Set the error message if someone forgot to fill in a required field.
Minimum length
Usage
array(
"minLength" => "Insert at least %s characters before this input is accepted"
);
Description
Set the error message if someone entered not enough characters. You can use a %s wildcard to automatically insert the required value. If minLength is set to 5, the message above will output "Insert at least 5 characters before this input is accepted".
Maximum length
Usage
array(
"maxLength" => "Input not accepted. You've entered too many characters. Only %s characters allowed."
);
Description
Same as Minimum Length.

