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;}
}
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