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
stringId of form element.
stringString to validate
arrayValidation options passed as an associative array (must have a type element)
arrayReturns an associative array with information on the validity of the value such as returnStatus(boolean), errorMsg(string), value(mixed) and extraInfo(mixed)