• 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

Explorer ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

If I use this code for example AFNumber_Format(2, 0, 0, 0, "$", true);  how can i get currency to show on right side of value? also can it have 2 currency symbol one on the left, and one on the right?

TOPICS
Acrobat SDK and JavaScript

Views

389

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

correct answers 1 Correct answer

Community Expert , Aug 15, 2020 Aug 15, 2020

Use this as custom format script:

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

Votes

Translate

Translate
Community Expert ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

Look at the description of AFNumber_Format.

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
Explorer ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

thx found it how to get it on the right . What about second question to show on both side?

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
Community Expert ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

For this you must create your own format script.

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
Community Expert ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

LATEST

Use this as custom format script:

event.value = util.printf("$%,0.2f$",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