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

CUSTOM FORMAT FOR CURRENCY

New Here ,
Feb 21, 2023 Feb 21, 2023

Copy link to clipboard

Copied

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

Views

356

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

You can use this:

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

Votes

Translate

Translate

Report

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