Placeholder Text (Creating Survey) | XM Community
Skip to main content
Solved

Placeholder Text (Creating Survey)

  • August 4, 2020
  • 1 reply
  • 532 views

Forum|alt.badge.img

Hi Guys,
When creating a survey has anyone created a placeholder text using java script. I know we have a feature called form we can use but the text is placed outside.

Thanks

Best answer by rondev

Use this code:
jQuery("#"+this.questionId+ " .InputText").attr("placeholder","TXT GOES HERE");
Check this for more detailed answer.

1 reply

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • August 4, 2020

Use this code:
jQuery("#"+this.questionId+ " .InputText").attr("placeholder","TXT GOES HERE");
Check this for more detailed answer.