JavaScript Form Validation

Here are some simple field evaluation examples. View the page source to see how they work.

Explore a JavaScript manual for further information. Information on using regular expressions in JavaScript is available online.

Hand-coded JavaScript Validation

 

Adobe provides Spry Widgets that are validated as the user types. E.g. the TextField Widget:

A value is required.Invalid format.

A value is required.Invalid format.

Invalid format.A value is required.

These employ JavaScript and a Style Sheet to validate the text and provide users with feedback about their entry.