Repeat headers in side-by-side question | XM Community
Skip to main content
Solved

Repeat headers in side-by-side question

  • September 18, 2023
  • 2 replies
  • 227 views

Forum|alt.badge.img+1

Hi all,

I would like to repeat the header in my side by side matrix more often. The ‘repeat header’ option in qualtrics only repeats it once every 9 statements and I would like to repeat it once every 5 statements. Is there someone who know how to change this using Javascript?

Thank you!

Jonne

Best answer by TomG

Set repeat headers to ‘All’, then:

Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" .RepeatHeader").each(function(i) { if((i+1)%5!=0) jQuery(this).hide(); });
});

 

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6084 replies
  • Answer
  • September 18, 2023

Set repeat headers to ‘All’, then:

Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" .RepeatHeader").each(function(i) { if((i+1)%5!=0) jQuery(this).hide(); });
});

 


Forum|alt.badge.img+1
  • Author
  • 1 reply
  • September 19, 2023

Is it also possible to do this for a ‘slider’ question? Since there is no repeat header option there as far as I know:)