Namespace: validators

settings. validators

List of custom validators.

All of them recieve two parameters, the first one is the field value and the second one the options gave to it when configured. Only if the user configured a validator with an string, number or object value, it is received.

The context of the validators is utilityContext so don't use arrow functions.



<static> isAlphanumericText()

This is the same as the validator isAlphanumeric except that this cleans spaces and line endings before validating so the field needs to have valid alphanumeric strings.

<static> isEqualToField()

This field value has to be the same as another field the form. The name of the comparing field should be set as a string parameter.