Hello, does anybody know how can I set a text field's format to Number with JavaScript? I need to do that dynamically, so I can't use the designer.
Hello, does anybody know how can I set a text field's format to Number with JavaScript? I need to do that dynamically, so I can't use the designer.
this.getField(event.target.name).setAction("Format", 'AFNumber_Format(2, 0, 0, 0, "$", false)');
The Acrobat proviced forms function call:
AFNumber_Format(nDec, sepStyle, negStyle, currStyle, strCurrency, bCurrencyPrepend)
nDec = number of decimals
sepStyle = separator style 0 = 1,234.56 / 1 = 1234.56 / 2 = 1.234,56 / 3 = 1234,56 /
negStyle = 0 black minus / 1 red minus / 2 parens black / 3 parens red /
currStyle = reserved
strCurrency = string of currency to display
bCurrencyPrepend = true = pre pend / false = post pend
George Kaiser