These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Select All Checkbox

br27ke
Registered: Nov 12 2009
Posts: 21
Answered

I'm trying to create a checkbox that when clicked "on" several other checkboxes are also clicked "on". I am fairly new to Livecycle and scripting. I was trying to use something similar to the following.

if this.rawValue == 1 {
checkbox1.rawValue = 1,
checkbox2.rawValue = 1,
else if
this.rawValue == 0 {
checkbox1.rawValue = 0,
checkbox2.rawValue = 0;}
}

My Product Information:
LiveCycle Designer, Windows
formman
Registered: Jul 17 2008
Posts: 44
br,

I would use the following assuming that all your checkboxes are under the same subform.

1. Make sure the script editor is set to JavaScript
2. Use this code in the click event of your controller checkbox:

if (this.rawValue == 1)
{
checkbox1.rawValue = 1;
checkbox2.rawValue = 1;
}
else
{
checkbox1.rawValue = 0;
checkbox2.rawValue = 0;
}

Forms Developer/Designer
Tech-Pro, Inc.
Roseville, MN

br27ke
Registered: Nov 12 2009
Posts: 21
Thanks...I finally realized it didn't like my checkbox names because they have - in them.