4 Replies Latest reply on Jan 29, 2014 10:34 AM by AimeeR

    Simple Percentage Calculation

    AimeeR

      I have two fields -Field 1 represents an amount (formatted as a number 1,234.56) and Field 2 represents a percentage (formatted as a number with no decimal).

       

      If the user enters 50 into Field 2, I want to calculate 50% of Field 1

       

      My current script results is "1.0" ...what am i doing wrong?

       

      var v1 = getField("Field1").value

       

      var v2 = getField("Field2").value

       

      event.value = v1(v2/100)

       

       

      Thank You in advance !!!