1 Reply Latest reply on Mar 16, 2010 12:18 PM by dgill_cleveland

    Linking Answers in Drop Down Boxes

    Ishida 1

      If I answer a question in a drop down box is it possible to link this answer to affect another drop down box question?

        • 1. Re: Linking Answers in Drop Down Boxes
          dgill_cleveland

          Yes.

           

          In the change event in drop-down box 1 add code the dynamically populates a set of different questions for drop-down box 2.

           

           

          if(dropdownbox1.rawValue == "xyz"){

               dropdownbox2.addItem("a");

               dropdownbox2.addItem("b");

               dropdownbox2.addItem("c");

          }

          else if(dropdownbox1.rawValue == "123"){

               dropdownbox2.addItem("1");

               dropdownbox2.addItem("2");

               dropdownbox2.addItem("3");

          }

           

           

          I hope this helps.