Validator

A simple prototype/scriptaculous based form validator. Just add title=“something” to the input you want to validate.
“something” is any string defined in the file validator_rules.js which for now can be “required”, “numeric”. etc

The file called validator_rules.js contains all the rules supported for now. You can edit this file to add your own customised validation rules.

For example to make a field required we do something like this

NOTE that the id= and title= are the only required parameters needed for validation

Activities Feed