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

change currency

Participant ,
Oct 21, 2020 Oct 21, 2020

Copy link to clipboard

Copied

I have a invoice with sum calculations. The values are formatted as $ numbers. But the problem is currency is not always $. Is this possible if we have a drop down for currency calculation and it auto change currency in all fields based on drop down?

TOPICS
PDF forms

Views

492

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 ,
Oct 21, 2020 Oct 21, 2020

Copy link to clipboard

Copied

Yes, it's possible, but requires development of a custom-made script. Also, this will not convert the values, so if you change it from USD to EURO (for example), then 10 USD will become 10 EUROS, not 8.44 EUROS (according to today's exchange rate)...

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
Participant ,
Oct 21, 2020 Oct 21, 2020

Copy link to clipboard

Copied

I understand. No worries if value remains same. 

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 ,
Oct 21, 2020 Oct 21, 2020

Copy link to clipboard

Copied

LATEST

You didn't say what are items in your dropdown, I'm assume you mean something like $, € and £ (you can adapt code yourself) use code as custom format script of your calculate field.

var drop = this.getField("Dropdown1").valueAsString;
if(drop == "£"){AFNumber_Format(2, 0, 0, 0, "£", true);}
else if(drop == "$"){AFNumber_Format(2, 0, 0, 0, "$", true);}
else if(drop == "€"){AFNumber_Format(2, 0, 0, 0, "€", true);}

 

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