Skip to main content
Inspiring
August 2, 2022
Answered

Adobe forms currency field: Use EUR/USD instead of €/$

  • August 2, 2022
  • 1 reply
  • 3114 views

Hi everybody,

I'm working on a new Adobe form where I have many currency fields. In the currency selection box only the symbols for EU and US currency can be selected, but I'd prefer to use EUR and USD instead of the symbols. Is this possible somehow?

 

Appreciate any info! Thanks!

This topic has been closed for replies.
Correct answer try67

Then you can use the code I provided. It should go under the Format tab, then select Custom, and put it under Custom Format Script:

 

 

1 reply

try67
Adobe Expert
August 2, 2022

It's possible with a custom Format script.

The most basic one would be (for example):

 

if (event.value) event.value += " EUR";

 

However, this will prevent you from using the Number option, so the user will be able to enter things might not be valid to the field. You can prevent that using a Validation script, or writing your own Keystroke and/or a more complex Format script.

Rostam777Author
Inspiring
August 2, 2022

Thanks for the quick response! In my form there's no number input for the user. The user just selects some options and the values will be calculated in a new text field. For this text field I'd like to use EUR. Right now I'm using a simple calculation (last tab in preferences - my Acrobat is in German, so I don't know how these fields are named in English version) but I could also use a javascript. Only how do I have to combine it with your above script?

 

For example one simple calculation is: (bp + pd + op) * 0.15

Rostam777Author
Inspiring
August 2, 2022

Works fine for me... I think you're setting the Direction property, instead of the Alignment one.

Direction "Right to Left" is for RTL languages (like Hebrew or Arabic), not for aligning the text to the right.

To do that go to the Options tab and change the Alignment option to "Right", and then it will work correctly:

 

 


Yes yes yes, thanks a lot! You saved my day!!