cancel
Showing results for 
Search instead for 
Did you mean: 

Translate the harcoded text written inside Script Editor in Adobe forms

awin_prabhu
Active Contributor
0 Kudos
649

Hi Experts,

In Adobe form, I have hardcoded a text inside the Script Editor.

Now i need to maintain translation for it in another language. Is it possible?

I have checked option Goto -> Translation. But that text is not available there.

Kindly give me some suggestions!

Accepted Solutions (0)

Answers (3)

Answers (3)

ChrisSolomon
Active Contributor
0 Kudos

I know what you are trying to do and that is NOT the way to handle it. haha This is EXACTLY why I never put texts to display within my script (Javascript). The better way to do it is this.....have a hidden text element on your form. Then show/hide it using your script. Since it is PART of the actual form, you can then translate it like you do anything else on the form. Works great!

If you absolutely HAVE to do the text as a pop-up or something "off form", then there are ways to do it very similarly but takes a little more thought/work (ie. have your script read the text element's text and use that in your pop-up...again, since the text element is ON the form, you will get the correct translation.)

Hope this helps!

OttoGold
Active Contributor
0 Kudos

The proper solution would be to use a standard text. in transaction SO10. then you would create language dependent versions of this text and change the locale of the form or read the right text in your backend coding as you need.

Otto

p.s.: learn about the tetx nodes in the context of the form or do it in your abap

Former Member
0 Kudos

Hi Mate,

If i were you I would use a hidden variable for this purpose.

Since you need transaltion, just change the locale to this hidden field with script and wud do your work as required.

let me know if you need any more info..

Cheers,

Sai