Thom
I found this script which I used in the mouse up for "Check Box18" which also selects "Check Box17" when checked.
I have also used this script for "Check Box19" (adding "Check Box18" to the var fn), and for "Check Box20" (adding "Check Box 18", "Check Box19" to the var fn). These are working fine for selecting the previous checkboxes, but I am having trouble incorporating a script which deselects Check Boxes 19 and 20 when "Check Box18" is deselected (same for "Check Box19" which deselects "Check Box20").
As a graphic designer scripting is a foreign language to me. The only script I am familiar with, is a font style!
this.calculate = false;
var fn = ["Check Box17"];
for (var i = 0; i < fn.length; i++) {
if (this.getField(fn).type == "checkbox") {
this.getField(fn).checkThisBox(0, true) ;
}
}
this.calculate = true;
this.calculateNow();
Don't use that script, it makes no sense.
Here is the MouseUp script for Checkbox 18, all the others are variations on this,
if(event.target.isBoxChecked(0))
{// Perform actions when checked
this.getField("Check Box17").checkThisBox(0,true);
}
else
{// Perform actions when unchecked
this.getField("Check Box19").checkThisBox(0,false);
this.getField("Check Box20").checkThisBox(0,false);
}
When you write out the description of what a checkbox will do you must include all actions, both checked and unchecked, all in one place.