New Forum | Previous | Next | (P-PDF) Developers
Topic: How to left pad with zeroes a field?
Conf: (P-PDF) Developers, Msg: 53958
Date: 5/29/2002 05:02 PM
In my Acrobat application I have defined a field "Field01" as non-numeric format.
When I fill in only number digits (i.e. "0123") and execute the command "var Field01 = this.getField("Field01");" in a custom script action on mouse down, the value returned is without the left zeroes; more, if I save this field and its value as global value in glob.js file, the value is treated as numeric and not like string (123).
How can I do to save the value as string and with its left zeroes? ("0123" instead of 123).