Field Validation

Previous Next

Important for early user feedback is the presence of field validation. USoft 9 has field validation built in by default. An adjusted version of the jQuery validator plug-in is incorporated (jquery.validate.js) to facilitate this. The plug-in comes with a default set of validators. The entire control is well documented at http://jqueryvalidation.org/documentation/.

USoft provides an additional set of validators that can be found in usoft.ui.validator.js.

Validator

Explanation

pattern

Allows a field to be validated against a regular expression.

biccode

Checks the field for a valid BIC code

iban

Checks the field for a valid IBAN code

udb‑mandatory

Domain mandatory check

udb-numeric

Domain numeric check

udb-ioformat

Domain IO-format check (not implemented yet)

udb-value-list

Domain allowed values check

When a field is validated as correct the value 'valid' is added to its class list. When validated as invalid the value 'error' is added to its class list. When one of the domain checks are violated the value 'domain-error' is added to the class list. Additionally, an error message is displayed as visual feedback to the user, where applicable.