0
Explorer
,
/t5/acrobat-reader-discussions/simple-format-script/td-p/11033968
Apr 08, 2020
Apr 08, 2020
Copy link to clipboard
Copied
Hi I've got format script:
event.value = util.printf("%,2.0f",event.value).toString().replace(/\./gim," ");
Please help, how to change it, because now if there is no data, result is '0', should be empty.
Thanks !
wieslaw
TOPICS
PDF forms
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
,
Apr 08, 2020
Apr 08, 2020
After this line add:
if (event.value == "0") event.value = "";
Community Expert
,
/t5/acrobat-reader-discussions/simple-format-script/m-p/11034456#M64844
Apr 08, 2020
Apr 08, 2020
Copy link to clipboard
Copied
After this line add:
if (event.value == "0") event.value = "";
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
robertb87361850
AUTHOR
Explorer
,
LATEST
/t5/acrobat-reader-discussions/simple-format-script/m-p/11034607#M64847
Apr 08, 2020
Apr 08, 2020
Copy link to clipboard
Copied
Thank YOU very much, it works 🙂
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

