API Docs for: 1.0.0
Show:

gallery-formmgr-css-validation Module

FormManager CSS Validation provides basic functionality for pre-validating user input based on CSS classes set on form elements.

The following classes can be applied to a form element for pre-validation:

yiv-required
Value must not be empty.
yiv-length:[x,y]
String must be at least x characters and at most y characters. At least one of x and y must be specified.
yiv-integer:[x,y]
The integer value must be at least x and at most y. x and y are both optional.
yiv-decimal:[x,y]
The decimal value must be at least x and at most y. Exponents are not allowed. x and y are both optional.

If we ever need to allow exponents, we can use yiv-float.

This module provides the following classes: