You need a custom function that you can later connect to the form.For more information about creating a function, see JScript Functions.Microsoft® Office Front Page® 2003 allows you to create some custom validation within the form feature.
For example, if you have a form that populates a drop-down list based on the value of another form field, server-side processing may be needed to pull data from a database and populate the drop-down list.
Client-side validation provides validation within the browser on client computers through Java Script.
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.
This article assumes a general understanding of HTML and Java Script.
However, client-side validation may not work in all instances.
A user may have a browser that doesn't support client-side scripting or may have scripting disabled in the browser.
In addition, each of the fields should have a unique name.
Use the following table to assign names to all of your form elements.
In this table, Element refers to the name of the HTML element for the form field, Type refers to the value of the type attribute for the form field, and Label refers to the text to the left of the form field. Form code updated with name attribute values Now that you have assigned names for the form and form fields, you are ready to start writing the script that handles the validation for the fields. If you are typing the Java Script code in this article manually and receive errors, you should check that all casing is the same as shown in this article.