I dont know how to format number to obtian a number that is a percentage with only one decimal, e.g. 3,0%
Thanks
Views
Replies
Total Likes
Is there a requirement to enter the number in a particular format? For example, you enter "30" and it should render "3.0%"
Or is the value calculated?
Steve
Views
Replies
Total Likes
The pattern would be:
num{zzzz9.z%}
But as Steve asked, if the number will be put in as a whole number (e.g. - 30.1 = 30.1%) then you'll need a script in the exit event:
this.rawValue = (this.rawValue / 100);
Views
Replies
Total Likes
You can format number decimal places in JavaScript using .toFixed() e.g.
var testNumber = 3.0123;
this.rawValue = testNumber.toFixed(1); // result is 3.0
Ben Walsh
Views
Replies
Total Likes