1 Reply Latest reply on Aug 22, 2014 6:47 AM by try67

    Outputting check box input to text box

    JeremyR

      I have another javascript question regarding Acrobat.

       

      I have an order form with 3 categories of check box sets.

       

      Set 1

      a

      b

      c

      d

       

      Set 2

      e

      f

      g

      h

       

      Set 3

      i

      j

       

      Each checkbox outputs the SKU of an item which in this case is insignificant.

       

      Here are the scenarios available to the user.

       

      Option 1 - One option from Set 1 AND one option from Set 2 must be selected. (Which i have working just fine)

         OR

      Option 2 - One option from Set 3 must be selected.

       

      These are the only possible options.

       

      I have a text box set to read only as the total box. It totals up the cost based on the options they select.

       

      If they select option 1 it needs to output $285 to the total box

      If they select option 2 it needs to output $475 to the total box.

       

      My theory is that I need to make an if then statement but I don't understand how to write the code for this to work.

       

      Any one's expertise would be extremely helpful.

       

      Thanks