1 Reply Latest reply on Jan 4, 2017 3:03 PM by nataliet26000454

    can i have a percentage populate in a different field as a decimal?

    nataliet26000454

      I have a form where people type a percentage. I would like to make that populate as a decimal in another text field.

      I have the current java used to populate several fields with this information:

      var n1 = this.getfield("TextField1");

      var n2 = this.getField("TextField2");

      n2.value = n1.value; 

       

      -is there a way to get Text Field 1 that is entered in as 50% to populate in Text Field 2 as .5 ?