placeholder in a multuple choice answer | XM Community
Skip to main content

placeholder in a multuple choice answer

  • September 9, 2022
  • 4 replies
  • 126 views

Forum|alt.badge.img+8

Hi
I need to place a placeholder in an allow text entry response.
i was trying to use java script but haven't been able to make it work
Screen Shot 2022-09-09 at 17.58.36.png

4 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • September 10, 2022

jQuery("#"+this.questionId+" .InputText").attr("placeholder","placeholder text goes here");


Forum|alt.badge.img+8
  • Author
  • QPN Level 4 ●●●●
  • September 10, 2022

I am not sure why but it isn't working


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • September 11, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/49386#Comment_49386Try this instead:
jQuery("#"+this.questionId+" .InputText,.TextEntryBox").attr("placeholder","placeholder text goes here");


Forum|alt.badge.img+8
  • Author
  • QPN Level 4 ●●●●
  • September 12, 2022

Thanks, it is working now!