These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Formatting Numeric Values

Chandran
Registered: Mar 12 2008
Posts: 58

Hi All,

Kindly let us know how to format the numeric values using java script.
Ex 24300 should be displayed as 24,300

Thanks in Advance.........

Regards,
Chandran S

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
You can set the fields display value. See the section "Numeric patterns" in LiveCycle Designer's Scripting help.

George Kaiser

Chandran
Registered: Mar 12 2008
Posts: 58
Hi

There is no script for that, can you provide some sample code for that.

Thanks in Advance..........

Regards,
Chandran S
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
Unless you are dynamically changing the field format, you do not need a script.

If you check the "Scripting Reference" in LiveCycle Designer's help, you will see there is a "Format()" function.

Quote:
Syntax:Format(s1, s2 [, s3 ...])
and the example for $1,234,567.89 in the U.S. and 1 234 567,89 Euros in France.:
Format("$9,999,999.99", 1234567.89)

George Kaiser