Field Validation |
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.
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. |