API Docs for: 1.0.0
Show:

gallery-formmgr Module

FormManager provides support for initializing a form, pre-validating user input, and displaying messages returned by the server.

Also see the documentation for gallery-formmgr-css-validation.

This module provides the following classes:

This module is a rollup of the following modules:

  • gallery-formmgr-css-validation

    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.