Hi,
I have a four checkboxes in my contact form. Here’s the code in the function layer. I’m pretty sure this code below is correct. I believe the problem is my CGI-file (attachment).
function Display© {
if (c.getValue()) {
_root.result = " Kyllä";
} else {
_root.result = " Ei";
}
phone2.setChangeHandler(“Display”);
letter.setChangeHandler(“Display”);
email2.setChangeHandler(“Display”);
permission.setChangeHandler(“Display”);
}
Thanking in advance
system
September 29, 2004, 5:11pm
2
Hi,
I’ve gone ahead with the problem. Now I get e-mails including the checkbox variables but their values are allways false.
Here’s more code:
_root.formData = new LoadVars();
_root.formData.name = “”;
_root.formData.company = “”;
_root.formData.address = “”;
_root.formData.zip = “”;
_root.formData.city = “”;
_root.formData.phone = “”;
_root.formData.email = “”;
_root.formData.message = “”;
_root.formData.permission = “”; //checkbox
_root.formData.phone2 = “”; //checkbox
_root.formData.letter = “”; //checkbox
_root.formData.email2 =""; //checkbox
_root.formData.permission = permission_b.getValue();
_root.formData.phone2 = phone2_b.getValue();
_root.formData.letter = letter_b.getValue();
_root.formData.email2 = email2_b.getValue();
replyData = new LoadVars();
replyData.onLoad = myOnLoad;
replyData.permission = “”;
replyData.phone2 = “”;
replyData.letter = “”;
replyData.email2 = “”;
globalStyleFormat.FMessageBoxTitleText = new TextFormat( “Arial Bold”, 15, 0xffffff);
globalStyleFormat.applyChanges();
errBox.setButtonWidth(50);
-Tommi