0
New Here
,
/t5/acrobat-sdk-discussions/change-the-output-format-of-a-number-with-javascript-acrobat-x/td-p/8256744
Mar 31, 2016
Mar 31, 2016
Copy link to clipboard
Copied
Hi all,
Depending on the formatting script the representation of a number is necessary to change.
This means: if the formatting script of the field is "AFNumber_Format \ (2,3,3,0, \" \ "false \)" it should be changed to "AFNumber_Format \ (2,1,1,0, \" \ "false \) ".
Par ex: 1,23 -> 1.23.
Fragment:
var f = this.getField("xyz") ;
if ((f.???? == "AFNumber_Format\(2,3,3,0, \"\", false\)") ) {
f.setAction ("Format", "AFNumber_Format\(2,1,1,0, \"\", false\);");
}
How can I read the contents of the formatting script?
Any ideas?
TOPICS
Acrobat SDK and JavaScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Community Expert
,
Mar 31, 2016
Mar 31, 2016
Not possible to do in Acrobat using a script.
Community Expert
,
/t5/acrobat-sdk-discussions/change-the-output-format-of-a-number-with-javascript-acrobat-x/m-p/8256745#M65724
Mar 31, 2016
Mar 31, 2016
Copy link to clipboard
Copied
Not possible to do in Acrobat using a script.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
ludwigg84355245
AUTHOR
New Here
,
LATEST
/t5/acrobat-sdk-discussions/change-the-output-format-of-a-number-with-javascript-acrobat-x/m-p/8256746#M65725
Apr 05, 2016
Apr 05, 2016
Copy link to clipboard
Copied
Thank you for your fast response!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

