Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CUSTOM FORMAT FOR CURRENCY

New Here ,
Feb 21, 2023 Feb 21, 2023

I have been using Acrobat's built-in format for "Numbers", but I have run into a little snag. I need to be able to use a "Custom Keystroke Script", but cannot do so unless I also use a "Custom Format Script".

 

I am fairly new to Adobe Javascript. Meaning, what I've used in the past to accomplish this has been a "Regex" formula. Which I've not been able to successfully use in this situation. (Am I missing something?)

 

I would greatly appreciate any help (possibly with an example), to find the solution to this issue.

 

 

TOPICS
Create PDFs , How to , JavaScript , PDF forms
520
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 21, 2023 Feb 21, 2023
LATEST

You can use this:

if(event.value)
event.value = util.printf("$%,0.2f",event.value);
else
event.value = "";

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines