General discussion

Locked

FrontPage Form Validation

By comp_instructor ·
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.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by compgirlfhredi In reply to FrontPage Form Validation

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.

Collapse -

by comp_instructor In reply to FrontPage Form Validation

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?

Back to Software Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums