8 Replies Latest reply on Apr 25, 2014 7:44 AM by kyleneedhelp

    Help Write Javascript Calculation


      Ok here is the trouble I am having. I want to write a javascript calculation to sum the total of text fields when a certain choice is selected in a dropdown field.


      The text fields I want to sum are called : Amount 1, Amount 2...all the way to Amount 14

      The Dropdown is called: Payment 1, Payment 2... all the way to Payment 14


      So, I want to write the calculation tha sums the amount fields that correspond with the same number dropdown when the drop down choice selected is "Reimbursement"


      So if amount 1 is $50, and payment 1 is reimbursement it adds to the total, but if something else is selected instead it just adds $0.


      Please help!