S
Stu
Have a form with data sent by e-mail. Trying to
use "return onSubmit". Not working. Put alert msg in
script and never saw it. Help please. Here's info:
Validation script:
function ExitCk(FrontPage_Form1) {
box = eval("document.FrontPage_Form1.LeaveOldOpen");
boxa = eval("document.FrontPage_Form1.DeleteImmediately");
box1 = eval("document.FrontPage_Form1.ReplacementCard");
//alert(box1);
if (box1.checked == true) {
if(box.checked == false && boxa.checked == false);{
alert("\nReplacement is selected.\n Additional
input is required on next line.");
document.forms[0].elements[13].focus();
return false; }
}
else {
return tr
Form info:
<FORM METHOD='POST' onSubmit="return ExitCk(this)"
name="FrontPage_Form1" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" s-email-format="TEXT/PRE" s-
email-address="(e-mail address removed)" b-email-label-
fields="TRUE" b-email-subject-from-field="TRUE" s-email-
subject="Branch" s-date-format="%A, %d. %B %Y" s-time-
format="%I:%M:%S %p" s-builtin-fields="REMOTE_USER Date
Time" u-confirmation-url="ATM Change Confirmation.htm"
startspan --><strong>[FrontPage Save Results Component]
</strong><!--webbot bot="SaveResults" endspan i-
checksum="6561" --><P>
use "return onSubmit". Not working. Put alert msg in
script and never saw it. Help please. Here's info:
Validation script:
function ExitCk(FrontPage_Form1) {
box = eval("document.FrontPage_Form1.LeaveOldOpen");
boxa = eval("document.FrontPage_Form1.DeleteImmediately");
box1 = eval("document.FrontPage_Form1.ReplacementCard");
//alert(box1);
if (box1.checked == true) {
if(box.checked == false && boxa.checked == false);{
alert("\nReplacement is selected.\n Additional
input is required on next line.");
document.forms[0].elements[13].focus();
return false; }
}
else {
return tr
Form info:
<FORM METHOD='POST' onSubmit="return ExitCk(this)"
name="FrontPage_Form1" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" s-email-format="TEXT/PRE" s-
email-address="(e-mail address removed)" b-email-label-
fields="TRUE" b-email-subject-from-field="TRUE" s-email-
subject="Branch" s-date-format="%A, %d. %B %Y" s-time-
format="%I:%M:%S %p" s-builtin-fields="REMOTE_USER Date
Time" u-confirmation-url="ATM Change Confirmation.htm"
startspan --><strong>[FrontPage Save Results Component]
</strong><!--webbot bot="SaveResults" endspan i-
checksum="6561" --><P>