This DHTML form validation script is unlike any other, and can be used by anyone who knows HTML. Last Update: 4/18/2005
SAMPLE FORM: * Required Fields
What FVOS Does
FVOS informs the user that they have left required form fields empty using a feature of Dynamic HTML. Empty fields and their text labels are rewritten to the page, while fields that were filled in properly are presevered as hidden fields. The fields can be rewritten an unlimited number of times, until the user fills out all required fields.
- Validation executes immediately - the user is not forced to wait for the data to be submitted, validated, then sent back.
- Excess Data Traffic is eliminated. This is important to a site owner if they pay for traffic.
- Server CPU cycles are saved. The server's load is reduced because execution happens client side.
- Did I mention the user does not have to wait for validation?
Multiple fields can be grouped together, as in the case when 3 text fields are used to gather the 3 parts of a phone number. FVOS can be instructed to rewrite such a group of fields together if one or more fields are left empty. It also "remembers" the value of any field(s) in the group that was filled in by the user so that when the group is rewritten, the user doesn't have to enter the same info more than once.
Groups can also contain different field types, i.e. your form can have a set of radio buttons grouped together with a select menu and a textarea if that's what you want.
The program is backward and forward compatible.
-The (rewritten) HTML output is 100% XHTML 1.0 compliant, regardless of how you write the original form. The XHTML output does not affect older browsers because they use alerts for missing required fields.
Both form buttons and images are supported for the "Submit" and "Reset" form controls.