This class holds validation methods that are custom to FormItBuilder and not built into FormIt/jQuery Validate. Validate methods are called via a snippet in a roundabout way using globals to get around limitations using FormIt
package | FormItBuilder |
---|
validateElement(string $elID, string $value, array $options) : array
Validates an element in a variety of ways that are not covered by FormIT
string
Id of form element.
string
String to validate
array
Validation options passed as an associative array (must have a type element)
array
Returns an associative array with information on the validity of the value such as returnStatus(boolean), errorMsg(string), value(mixed) and extraInfo(mixed)