Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

currency symbol and localization

Avatar

Level 6

Hello,

I have a pdf form with some monetary fields. Each field shows the localized currency symbol.

Is it possible to change the currency symbol dynamically (example from the euro symbol to the dolar symbol)?

I ask this because I would like to use the same form with different currency symbols. For instance, is it possible to dynamically change the localization of the form?

thank you

4 Replies

Avatar

Level 10

Looks like locale is exposed up to the sub-form level. For demonstration purposes, I have a sub-form with amount, tax, and total, I can toggle the locale on the click event of a button called 'localeBtn'.

// form1.page1.subform1.localeBtn::click - (JavaScript, client)

if (form1.page1.subform1.locale == "en_GB_EURO") {

     form1.page1.subform1.locale = "en_US";

}

else {

     form1.page1.subform1.locale = "en_GB_EURO";

}

toggle_locale1.pngtoggle_locale2.png

Steve

Avatar

Level 6

Hello,

Thank you for your help steve.

But I would like to make another related question: where the locale formats came from? Are they coming from the operating system or does Adobe Reader have them defined elsewhere?

Thank you

Avatar

Level 10

I believe they are defined by Designer in the install folder '..\Designer ES\8.2\Linguistics'.

Avatar

Level 6

Steve,

I looked at that folder and it seems it only defines the list of countries to be used by each language. I didn´t see anything about, for instance, the currency symbol to use. The strange thing is that I changed the character symbol in the regional options in windows, and it didn´t changed nothing in my form, so it seems this information cames from elsewhere...

Thank you