Compare and Confirm 2 Drop Down Boxes

G

Guest

I have a form that asks for an email address and I want it to have a field
that makes the user confirm the address. I found a J-Bots script that doesn't
allow the user to get past the 2nd field if the information isn't the same as
the 1st field. That's great. But, I also have a drop down box that offers
multiple choices that I want people to confirm as well in a 2nd drop down
box, so I want each box to be identical.

I tried to use the J-Bots script on the drop down boxes, but apparently it
will only allow me to compare 2 fields (the email addresses).

Is there a script that will force the user to enter the same selection in
both drop down boxes that will not interfere with the script that compares
the email fields?

In short, I want people to confirm their "email address" in a 2nd text field
and I want them to also confirm their "selection" in a 2nd drop down box in
the same form.
 
G

Guest

Are you using a FrontPage "Save Results" component to process the form input
after it arives at the Web server?

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
o-----------------------------------------------------
o--> Microsoft Visual Web Developer 2005 Express Edition: Build a Web Site
Now!
o--> Microsoft Office FrontPage 2003 Inside Out
o--> Microsoft Windows SharePoint Services Inside Out
o--> Faster Smarter Beginning Programming
o-----------------------------------------------------
 
T

Thomas A. Rowe

Why would you need to people to confirm a drop down choice where they are making a selection that
you have provided? Use FP Form Field Validation and set the first choice as not allowed, this will
force to the user to select another item from the list.

The email compare function is to make sure that the user has spelled the email address correctly,
and doesn't in sure that they have provide a correct or valid email address.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

I know how to disallow first choice. My concern is that the user may
accidentally click on the wrong drop down item and not realize it, as I've
seen it happen in the past, in which case I want them to confirm their choice
so they can't argue later "Ooops, I made a boo boo", if that answers your
"not very well thought out" question.
 
T

Thomas A. Rowe

Have you consider using server-side scripting and taking a user to review page before actually
processing the submission?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

Well, there are ways to do what you want, but they're not built into
FrontPage. In fact, if you're currently using FrontPage form field validation
or the FrontPage facility for saving results to e-mail, a file, or a
database, you would have to switch all that to custom code.

So, I ask again: Are you currently using FrontPage form field validation or
the FrontPage facility for saving results to e-mail, a file, or a database?

Also, I tend to agree with Tom's implied observation that forcing the
visitor to make identical selections in two drop-down boxes is unusual, and
therefore likely to be confusing. An "Are you sure?" dialog box (or page) is
much more common and familiar.

Have you thought about why this is such a problem? For example, do you have
too many choices in your drop-down list. or is it too hard to detect and
correct mistakes later?

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
o--> Microsoft Visual Web Developer 2005 Express Edition: Build a Web Site
Now!
o--> Microsoft Office FrontPage 2003 Inside Out
o--> Microsoft Windows SharePoint Services Inside Out
o--> Faster Smarter Beginning Programming
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top