Previous | Next | (P-PDF) JavaScript
Topic: french format number
Conf: (P-PDF) JavaScript, Msg: 28393
From: lmp
Date: 10/11/2001 01:44 PM
I have a form, english and french, my client require that when she fill out form in English version, it is automatically fill out in Frech version. I have a problem the French format number. I try to use substring function to take the number, and I use add string to add space between the number. I don't know why it is not working.
In English version I use to add 3 fields;the total, format number as 3,465.55
var a =this.getField("Total")
var b=this.getField("Totalfrench")
var c= a.substr(0,1);
var d= a.substr(3,5);
var e= a.substr(6,8);
b.value= c.value+" " d.value+e.value
I don't know why it is not working? Or I have to use the function split, or trim the number. This is try me crazy. Thank you very much for your hint.
Cindy