Highlighted

Multilingual forms

AmbikaM

27-02-2009

hi...

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



thanks

Ambika

Replies

Highlighted

Avatar

Guest

27-02-2009

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
Highlighted

Avatar

Guest

27-02-2009

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