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

placeholder in a multuple choice answer

  • Sep 9, 2022 9:02 PM UTC
  • 4 replies
  • 145 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 ●●●●●●●●
  • Sep 10, 2022 2:44 AM UTC

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


Forum|alt.badge.img+8
  • Author
  • QPN Level 4 ●●●●
  • Sep 10, 2022 10:25 PM UTC

I am not sure why but it isn't working


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Sep 11, 2022 1:37 PM UTC

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 ●●●●
  • Sep 12, 2022 6:21 PM UTC

Thanks, it is working now!