Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Multilingual forms

Avatar

Level 4
hi...

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



thanks

Ambika
2 Replies

Avatar

Former Community Member
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

Former Community Member
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