How to add question separators for only certain questions | XM Community
Solved

How to add question separators for only certain questions

  • 7 January 2019
  • 8 replies
  • 643 views

Userlevel 1
Badge +4
I've turned off question separators in look and feel as I don't want them for the majority of my questions however I would like to add them for just a couple of questions. Any ideas?
icon

Best answer by TomG 7 January 2019, 20:36

View original

8 replies

Userlevel 7
Badge +27
Add an html `<hr>` tag to the beginning of your question text.
Userlevel 1
Badge +4
@TomG Ahh knew there would be an easy way. Thanks Tom
Userlevel 1
Is there a similar easy fix if I have turned question separators on in look and feel but want to hide it between two specific questions?
Userlevel 7
Badge +27
Add this JS to the second question:
```
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId).prev('.Separator').hide();
});
```
Userlevel 1
@TomG excellent thanks!
Badge +4

I am also trying to hide just a few specific separators. I tried the code above and it did not work for me. Any ideas?

Userlevel 7
Badge +27

https://www.qualtrics.com/community/discussion/comment/30199#Comment_30199Change addOnload to addOnReady. At some point in the last year and a half Qualtrics made a change that impacted the timing.

Badge +4

Thanks! That was the fix!

Leave a Reply