Question on Forms & Validations

  • Thread starter Thread starter Howard
  • Start date Start date
H

Howard

A few questions on FrontPage 2002 (and using the server extensions).
These are related to Forms:

1. Let's say there's a field for name. You don't want people to
submit the form without filling in their name. How do you set the
validation so it will tell the user to fill out their name.
Currently, I've only been able to get this to work if I set the
validation to "Data Length Required" and set it to 1. But the
corresponding error message the users sees is "You need at least one
character in the Name field". I just want it to say "You need to
enter your name" - I don't want it to mention the quantity of
characters! Any possible way to do this?

2. Once the error message pops up that "you need at least one
character in the Name field", there is a link to go back to the form.
Unfortunately, this link takes you back to a BLANK form. I want to
substitute a "Back" link instead of Microsofts built in link. I know
the Java code to do this, but since this is a webbot, I'm not sure how
(or if it's even possible). I really don't want to write my own
Java/VB code for confirmations as I don't know enough about Java/VB to
do it manually (if I did, I wouldn't have bought FrontPage! :-)

3. When a user "Submits" a form, I want it to go to a page where the
user can review their answers and change if necessary and click submit
again. I have tried building a page where the confirmation are
entered into another form. But as I've found, you can't display
confimations in another form. Any easy way to do this (short of just
displaying the results and using the back button again to go back and
fix on the original form)? It's just that I would rather receive only
one form from people rather than 4 forms by the time they are done
correcting their input 4 times in a row!

Thanks for any help,

Howard
 
It is possible. I would go to the office download site and make sure you
have the latest FrontPage extensions, as that is where the form handlers
are. It could also be the specific things you have turned on. I did set mine
to only allow lettters (no numbers) as a name would not have numbers, but
that should not change anything.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

****************************************************************************
****
Think Outside the Box!
****************************************************************************
****
Howard said:
Hi Gregory,

Thanks for your response. For some reason, mine will not validate
using your method. To make sure there are no misunderstandings, here
is exactly what I'm doing:

1. Right click a form element (a text box) and select "form field
properties"

2. In the "Name Field", I typed in "LastName"

3. Then I click on the "Validate" button.

4. Under Data Type, I have selected "No Constraints". I have tried
changing this to "Text", but doesn't make a difference.

5. The check box for "Required" is checked (under Data Length), but
the mimium and maximum boxes have been left empty.

Currently, if someone doesn't put in the last name, the form still
submits with no errors to the user. If I place a "1" in the minimum
field (under Data Length), then it will catch it and say the required
length must be at least 1.

I have no idea why yours works and mine doesn't. Maybe a released
patch I'm missing?

Thanks,

Howard
 
Back
Top