How to use JavaScript for shadow text in a text box for translations | XM Community
Skip to main content
Question

How to use JavaScript for shadow text in a text box for translations


Forum|alt.badge.img+2

hello,
I have this code snipet provided by a few memebers here that works great for shadow text in a verbatim text box. The code basically displays until you start typing. The only issue I have now is I can't figure out how to translate it into different languages. Any thoughts on this? Below works for English Only.

Qualtrics.SurveyEngine.addOnload(function() {  
    jQuery("textarea").attr("placeholder","Start typing to provide your feedback.");
});

2 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • 2028 replies
  • August 17, 2021

What do you mean by The only issue I have now is I can't figure out how to translate it into different languages?


Forum|alt.badge.img+2
  • Author
  • 17 replies
  • August 17, 2021

Ahmed,It works for English only not in other languages.I would like for that shadow text to appear in the language the survey is in. Like Spanish, etc. I have 9 different translations. Thanks!


Leave a Reply