How do I add a label to a text entry box? | XM Community
Skip to main content
Solved

How do I add a label to a text entry box?

  • November 15, 2019
  • 4 replies
  • 413 views

gwrightiv
Forum|alt.badge.img
I am looking to add a label inside a text entry box that says "Describe". Can anyone provide help?

Best answer by TomG

``` jQuery("#"+this.questionId+" .InputText").attr("placeholder", "Describe"); ``` For translation, replace "Describe" with a piped MC choice as described in this post.
View original

4 replies

Inessa_Gelman
Level 2 ●●
Forum|alt.badge.img+3
  • Level 2 ●●
  • 49 replies
  • November 15, 2019
Curious as well. And if there is a way to show in the appropriate language based on the translation shown to the respondent, that would be ideal.

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5921 replies
  • Answer
  • November 15, 2019
``` jQuery("#"+this.questionId+" .InputText").attr("placeholder", "Describe"); ``` For translation, replace "Describe" with a piped MC choice as described in this post.

Inessa_Gelman
Level 2 ●●
Forum|alt.badge.img+3
  • Level 2 ●●
  • 49 replies
  • November 15, 2019
@TomG Thanks! will try it out

Forum|alt.badge.img
  • 2 replies
  • June 30, 2023

Hi,
How do I add translations for the required placeholder text in the given code.

Thanks


Leave a Reply