How to ensure that the user submits required information in FrontPage 2000

IMPORTANT: Never under any circumstances ask users to submit credit details or passwords as the information will not be encrypted and is vulnerable.

This tutorial explains how to ensure that the user completes certain form fields that you require - such as including a reply email address. You must open a page within a FrontPage Web for the JavaScript validation code to be inserted in your page.

Example form:

* indicates required information

Your name: *

Your email: *

Date of visit: *
format: dd/mm/yyyy

Number of visitors: *

Your address:

Qualifications:     BA/BSc     MA/MSc     MPhil/PhD

Do you wish to be added to our mailing list?      Yes      No

Research interests:


Step 1
In order to create the above example form with validation, first repeat the steps described in How to create a standard form in FrontPage 2000 but add two additional one-line text boxes at the start of the form.

Note that the text beside the first five form fields have changed to:

You will need to change the 'Form Field Properties' names accordingly to:

Step 2
To ensure the email field is filled-in by a user, right-click that particular field and select 'Form Field Validation'.

Step 3
Tick the 'Data Length', 'Required' checkbox to ensure that the user includes something in the required field when submitting the form.

This is the most basic validation that FrontPage 2000 offers and most times, that's enough. If it's all you require, click 'OK' and test the validation in your browser by previewing the page - there's no need to publish the page.

When a user submits the form without including required information, he or she will be prompted to do so until they have completed all of the fields you have specified as required.

Step 4
Repeat the process for the email field but this time specify the display name:

Screenshot of Javascript Application window

Step 5
There are more sophisticated ways of determining what information you want the user to supply. The 'Text Format' values aren't worth changing in most ordinary circumstances but the third box is for 'Date of Visit' and requires that the user submit information in the form of dd/mm/yyyy:

Step 6
The reason that the 'Date of visit' data type could not be specified as 'Integer' or 'Number' was because the forward-slash character had be included. The next one-line text box is 'Number of visitors':

Validating other form elements

Validation can also be applied to scrolling text boxes, radio buttons and drop-down menus but not to checkboxes. Again, right-click the form field, select 'Form Field Validation' and then make the restrictions you require.

FrontPage 2000 also checks that you do not have two fields with the same name when you add validation to your form.

^ Back to top