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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Multilingual forms

Avatar

Level 4
hi...

can anybody provide me assistance in how to design multi-lingual form???



thanks

Ambika
2 Replies

Avatar

Not applicable
Hello Ambika,



There are so many ways of doing that.



Here is the way which i have implemented. It looks tedious but, works fine.



-> Have a radiobutton or a dropdown on your pdf form.

-> On the change event of that language selector write some javascript which changes the captions of your form elements.



Here is one sample snippet:



// Default the form to the language it was originally created in.

if (_PAGE3.FORM_STATE_INFO.LanguageOfCreation.rawValue == "FRENCH") then

Language = "FRENCH"

Form._PAGE1.txtProfile.rawValue = "XYZ"

Form._PAGE1.SummaryFields.Summary.caption.value.text.value = "Sommaire du bail"

Form._PAGE1.InformationFields.CentreName.caption.value.text.value = "Nom du centre dachat"

else

Language = "ENGLISH"

Form._PAGE1.txtProfile.rawValue = "ABC"

Form._PAGE1.SummaryFields.Summary.caption.value.text.value = "Deal Summary"

Form._PAGE1.InformationFields.CentreName.caption.value.text.value = "Mall/Center Name"



endif



Regards

Deepak

Avatar

Not applicable
You can also do that using XML binding. You can load an XML based on the language you are using. This loaded XML can be merged with the form template