Generalized Form Validation



Validation Tags:

The validation tags are embedded within hidden input controls. By using the tag <input name="tagname" value="validation tag" type="hidden"> the control will not show up on the form when being viewed within the web browser, but can easily be manipulated using JavaScript.

Tag format:

All validation blocks must be closed. Section is the name of the section that is being validated, this acts as a label in case the validation fails, it can inform the user which section the error occured at. Also, if there exists an anchor by that same name, the web browser will attempt to jump to that anchor.

Validation Type can be one of the following values:

Evaluation of Validation Tags:

  1. Tags of different validation types can overlap. Overlapping tags of like validation types is currently undefined.
  2. Presedence of validation types:
    1. NoValidation
    2. NoBlanks
    3. Parsable
    4. CheckSum
    meaning that the form fields are checked in that order (ie... if a field fails the NoBlanks and the Parsable check, then the NoBlanks message will be displayed because it is before Parsable in the presedence chart.)
  3. Different input types are validated differently. See Input Type Validation Mapping