Total Pageviews

Saturday, 17 August 2013

Livecycle Designer: Currency symbol and localization



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

USD en_US 
EUROS en_GB_EURO 
POUNDS en_GB 
RENIMBI zh_CN 

Steve

No comments:

Post a Comment