Skip to main content
Participant
March 22, 2021
Question

Changing currency symbol from dropdown choice.

I am having issues figuring out how to change the currency symbol on a form based on the conversion choice the user makes.

I have created a dropdown list of a few countries. and I would like my currency symbols to change automatically once the user picks a country.

Preferably I would want it to be defaulted to US dallars, and then the user has the option to switch it thru the drop down selection.

This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

try67
Community Expert
Community Expert
March 22, 2021

It's possible, but will require using a custom-made script, as was mentioned.

Also, you need to take into account that it won't convert the values, just the symbol. For example, if you change $10 to €10 the value is not the same...

Translate
Participant
March 22, 2021

I have the actual conversion working. Its just the symbol that still says "$"

Translate
try67
Community Expert
Community Expert
March 22, 2021

https://www.x-rates.com/table/?from=USD&amount=1

 


But a PDF file is static, and exchange rates change every day (if not more frequently)...

Translate
ls_rbls
Community Expert
Community Expert
March 22, 2021

You may need to employ Custom Format script with some conditional statements and using the util.printf() method.

 

The JavaScript for Acrobat API 

Reference have somescript  examples with that method that you may employ in your PDF:

 

https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_api_reference.pdf

 

 

 

Translate
Technical Generalist