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

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

126

Likes

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);

Likes

Translate

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

Copy link to clipboard

Copied

Look at the description of AFNumber_Format.

Likes

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?

Likes

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.

Likes

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);

Likes

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