Custom HTML Border for a Single Question | XM Community
Skip to main content
Solved

Custom HTML Border for a Single Question

  • July 21, 2022
  • 4 replies
  • 490 views

Forum|alt.badge.img+2

I am trying to add a banner that appears after a quota is met at the top of my first page of survey.

I want this 'question' to be bordered. And only this question.

I found from this post (https://community.qualtrics.com/XMcommunity/discussion/871/is-it-possible-to-put-a-frame-around-a-question) that frames everything on the page.

I found from this other post (https://community.qualtrics.com/XMcommunity/discussion/16190/framing-a-single-question-with-a-border-im-using-css-but-it-adds-a-frame-to-every-question) supposedly code to make it only border the one question.


So what I have tried is a few variations. None of them work. No border, not even for all questions.
These are all at the top of the "HTML view" of the desired question (which is QID27)




Best answer by TomG

I think your selectors are incorrect. The id (QID27) is unique. So, try this:

4 replies

grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+13
  • QPN Level 3 ●●●
  • July 21, 2022

jQuery(.class).css('border','1px')
Here class refers to the class of the question or the question text.


Forum|alt.badge.img+2

https://community.qualtrics.com/XMcommunity/discussion/comment/47914#Comment_47914Thanks for answering my question so quickly but I am complete HTML/CSS/JS beginner--- what do I do with this? where do I put it? Am I supposed to change "class" to be QID?


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • July 21, 2022

I think your selectors are incorrect. The id (QID27) is unique. So, try this:


Forum|alt.badge.img+2

https://community.qualtrics.com/XMcommunity/discussion/comment/47920#Comment_47920Thank you so much, that worked!! Your title "Wizard" is quite appropriate- I see your answers all over the forum!

Thank youuuu