Skip to main content
Participant
January 4, 2017
Question

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

  • January 4, 2017
  • 1 reply
  • 239 views

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 ?

This topic has been closed for replies.

1 reply

Participant
January 4, 2017

i figured it out