1 Reply Latest reply on Jul 7, 2011 11:58 PM by try67

    Combo box and Checkbox

    zendog22

      I know this is very simple but I am stumped. I have a combo box with two items in it. The two items are also on the next page but with a check box next to them. What I’m trying to do is when a combo box item is selected the check box on the next page becomes checked. I don’t know how to code so step by step instructions would be great.

        • 1. Re: Combo box and Checkbox
          try67 MVP & Adobe Community Professional

          You can use something like this as the custom Validation code of your combo (of course, you'll have to adjust the values of the combo and the field names):

           

          if (event.value=="1"){

          getField("CheckBox1").checkThisBox(0,true);

          getField("CheckBox2").checkThisBox(0,false);

          } else if (event.value=="2") {

          getField("CheckBox1").checkThisBox(0,false);

          getField("CheckBox2").checkThisBox(0,true);

          }

           

          Also, make sure you set the combo to commit the value immediately.