1 Reply Latest reply on May 19, 2011 12:03 PM by MarkWalsh

    How to make choices in a drop down box change a value in another box

    skipenguin101

      Hi,  I am fairly new to the world of creating forms in Adobe so please bear with my question if it seems simple.  I have seen where a lot of people are using code and I am very confused.  I am creating an order form and have created a drop down box (combo box).  There are 4 choices in this drop down box.  When the user chooses one of these choices, I would like an amount to appear in a seperate box.  Each choice would have a different amount.  Is this possible?  If so, could someone please give me step by step instructions.  I appreciate any help given!!

       

       

       

        • 1. Re: How to make choices in a drop down box change a value in another box
          MarkWalsh Level 4

          Yes, the best way would be to set your 'Amount' value into the 'Export Value' for each item in the combobox. Then, you can set the calculation for your text field to the following (Be sure to change "ComboBox1" to the name of your combobox):

           

           

          var f = this.getField("ComboBox1");
              var a = f.currentValueIndices;
              var s
              if (typeof a == "number") {// a single selection
                  s = (f.value);       
              }
          event.value =  s