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

 Methods

validateElement($elID, $value, $options)

validateElement(string $elID, string $value, array $options) : array

Validates an element in a variety of ways that are not covered by FormIT

Parameters

$elID

string

Id of form element.

$value

string

String to validate

$options

array

Validation options passed as an associative array (must have a type element)

Returns

arrayReturns an associative array with information on the validity of the value such as returnStatus(boolean), errorMsg(string), value(mixed) and extraInfo(mixed)