# UI Components (checkboxes)

**URL:** <https://forum.kirupa.com/t/ui-components-checkboxes/65706>\
**Category:** flash\
**Created:** [September 28, 2004, 10:54pm UTC](https://forum.kirupa.com/t/ui-components-checkboxes/65706 "2004-09-28T22:54:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsundqvi](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@tsundqvi](https://forum.kirupa.com/u/tsundqvi)\
**Post date:** [September 28, 2004, 10:54pm UTC](https://forum.kirupa.com/t/ui-components-checkboxes/65706/1 "2004-09-28T22:54:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 5:11pm UTC](https://forum.kirupa.com/t/ui-components-checkboxes/65706/2 "2004-09-29T17:11:12Z")

</div>

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
