Automatically check a box if another is box is checked

I have several check boxes on my Adobe Acrobat Pro XI form. I would like for a check box to automatically be selected if another box is checked. Example: If the user selects chocolate, I want flavor to be checked too. Please advise how I could best approach this task.


Marla Araiza


4 Answers

Voted Best Answer

OK, in that case you can use this script as the mouse-up event of each of the sub-check boxes:

if (event.target.value!="Off") this.getField("Company A").checkThisBox(0, true);

.


Visit my custom-made PDF scripts website: http://try67.blogspot.com
Contact me personally: try6767@gmail.com


By Gilad D (try67)   

Why not simply copy the first one and paste it where the second one should be? Field with the same name will always have the same value.

.


Visit my custom-made PDF scripts website: http://try67.blogspot.com
Contact me personally: try6767@gmail.com


Gilad D (try67)   

Sorry, I don't think I fully explained what I need to do becuase I don't think that would work if I'm following you....which it's highly possible I'm just not following you. But, I have a check box next to "Company A" and under "Company A", there are 4 sub-companies. If one of the sub-companies is checked then I want to ensure "Company A" at the higher level is checked as well.

So if "Miny" is selected, then I want "Company A" to be selected. But if "Any" is selected, I'd also want "Company A" to be selected.

X Company A
Any
Many
X Miny
Mo


Marla Araiza   

Thanks a million!


Marla Araiza   


Please specify a reason: