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

Forcing one checkbox checked if another checkbox is checked

lnail
Registered: Apr 18 2008
Posts: 51

Is this possible?

I have one page where the end-user has a choice of four different checkbox options (checkboxes are named the same with different values). On another page, I have six other checkboxes. These six checkboxes are broke down into three groups of two - "Elected" and "Declined".

If an end user chose one of the first three of the original four checkboxes, I would like the corresponding "Elected" checkbox on the other page to auto-check. If the LAST of the four checkboxes is checked, then I would like to have ALL of the "Elected" checkboxes on the other page checked.

I have learned so much off of the threads here, but I haven't found anything on this yet. Can someone please give a little guidance? Thanks.

lnail

YES! I can do that.

My Product Information:
Acrobat Pro 8.1.2, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
You will need a script for all the 3 elected/not elected involved check boxes to determine if the conditions are met or not met for the setting of the All Elected button are meet or not. If all the optional elected buttons are checked then set the "All Elected" check box to its export value for "elected" and if not then to the "Off" value or "Not Elected" value.

Since, the code for this should be exactly the same for all 6 check boxes, one could use a document level function that is called in each of the 6 check boxes and returns a status value for the "All Elected" button is to be checked or not.

You also might want to let others know if you are using Acro Forms or LiveCycle Designer for your form creation.

George Kaiser

lnail
Registered: Apr 18 2008
Posts: 51
gkaiseril,

Thank you. I am using AcroForms for my forms. Could you point me in the direction of a tutorial or article on this. I am still learning, and the isBoxChecked() function is not working properly for me.

lnail

YES! I can do that.