Discussion Locked

FrontPage Form Validation

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How can you create a form validation dependent of more than one field. For example, if lastname is filled in, then firstname must be filled in also. Even though I can see the text in the source, I can't edit or paste changes in FrontPage.

2 replies

by compgirlfhredi

If you are using FrontPage to create your submission form then one option would be to just right click the form field to get to the form field properties and then check that data is required. If you want to do it directly in ASP here is a simple example: http://www.aspwebpro.com/aspscripts/forms/basicformvalidation.asp

If you do not have the right-click option:

To access the form properties, your form field must be inside the dashed line that denotes the form. Use one of the following methods to resolve this behavior so that you can access the form's properties.
Method 1: If You Have a Form on the Page
Select the form field.
On the Edit menu, click Cut.
Click anywhere inside the form (the dashed lines).
On the Edit menu, click Paste.
Right-click the form field and click Form Properties on the menu that appears.
Method 2: If You Do Not Have a Form on the Page
Select the form field.
On the Insert menu, point to Form Field, and then click the form field option you want.
Right-click the form field and click Form Properties on the menu that appears.

by comp_instructor

I need to make the validation dependent on both fields. I can do it for one or both independently, but how can you require "lastname" only if "firstname" is filled in?

This discussion is closed to new replies.