RE: Form Validation
by "Campbell, Rebecca" <Rebecca.Campbell(at)converg.com>
|
| Date: |
Fri, 14 Apr 2000 09:26:47 -0600 |
| To: |
"'Emmalisa Whalley'" <ewhalley(at)standard.com>, "'hwg-techniques(at)mail.hwg.org'" <hwg-techniques(at)mail.hwg.org> |
| |
todo: View
Thread,
Original
|
|
hi, emma...
aack! i'm so sorry... your comparison should be be && not ||.
that way, if they're BOTH equal to "", it will pop the user back.
-rebecca
http://www.nerdygirl.com
-----Original Message-----
From: Emmalisa Whalley [mailto:ewhalley(at)standard.com]
Sent: Thursday, April 13, 2000 4:14 PM
To: 'hwg-techniques(at)mail.hwg.org'
Subject: Form Validation
I'm having a problem getting my form to validate on an else/if input area.
I have two input type="text" boxes that one or the other needs to be filled
in. The form validates fine up until I get to the line where I have the
double text boxes and gives me this error: exception.Contract.value is not
an object after I have filled in data into one of the boxes, after I fill in
one of the text boxes it does not validate any of the remaining input
type="text" boxes below and shoots the mail merge. Below I have listed the
line of JS validation I am using in the form. Thanks for your help!
Emmalisa
if(exception.Policy.value.length == "" || exception.Contract.value.length ==
"") {alert("Please fill in the Policy/Contract Number or Group ID");
exception.Policy.focus();return false;}
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.