yeah. That is true. Also while validating for required fields may be you can
look at making use of regular expressions. This is a very easy way to
provide form level validation.
Regards,
Rajeev
-----Original Message-----
From: Mark Eckeard [mailto:meckeard2000@y...]
Sent: Thursday, July 11, 2002 12:28 AM
To: JavaScript HowTo
Subject: [javascript_howto] Re: Form Validation - ** Please HELP !! **
One way to do it is to prompt the user with Javascript
using the "confirm" box. If the user hits yes, set a
value to hidden text box. Then, when the user submits
the form, has some Javascript check the hidden text
box. If the value is set, enforce the second set of
requirements.
Hope this helps.
Mark
--- Jeff McFarland <jeff@s...> wrote:
> If I have a form that asks a question, and the user
> must anwswer "yes"
> or "no" to the question. How could I make my asp do
> "something" if "yes"
> is selected or "somethingelse" if they chose the
> "no" radio button.
>
> Here is my problem:
> If the user answer's yes to the question, I have to
> make 4 other fields
> (in my form) required that are normally not
> required.
>
> Thanks Everyone!
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************