The user should select an option other than this ‘Select One’ item.Form validation normally used to occur at the server, after the client had entered all the necessary data and then pressed the Submit button.In other words, in order to validate a field, you just associate a set of validation descriptors for each input field in the form. For such cases, a function is included which clears all validations in the validator object. Note that this validation if for fields like Textbox and multi-line text box.For ‘selections’ like drop down and radio group, use an appropriate validation like ‘dontselect’ or ‘selone_radio’.The following example shows how to validate an entered email address.An email address must contain at least a ‘@’ sign and a dot (.).For example, you may want to ensure that someone inserts a valid e-mail address into a text box, or perhaps you want to ensure that someone fills in certain fields.
Lisa Wollin Microsoft Corporation May 2004 Applies to: Microsoft® Office Front Page® 2003 Microsoft Front Page 2002 Microsoft Front Page 2000 Summary: Learn how validate HTML form fields using Java Script in Microsoft Office Front Page 2003.Using client side Java Script is an efficient way to validate the user input in web forms.When there are many fields in the form, the Java Script validation becomes too complex.This article assumes a general understanding of HTML and Java Script.(16 printed pages) Introduction Getting Started Writing the Validation Script Connecting the Form to the Script Associating Form Fields with Custom Script Code Listing Conclusion When you create forms, providing form validation is useful to ensure that your customers enter valid and complete data.