Custom Header Repeating | XM Community
Question

Custom Header Repeating

  • 7 August 2019
  • 0 replies
  • 26 views

I am trying to get my headers to repeat in a custom fashion using a Java script that I found on another post.

var j=jQuery(".ChoiceRow:last").index()/2;
console.log(j);
var i;
jQuery('tbody tr.RepeatHeader').eq(0).hide();
for( i=1;i<=j;i++){
if(i % 5 != 0 ){jQuery('tbody tr.RepeatHeader').eq(i).hide();}
}

Oddly enough, this script works for all of my blocks, except one. For one block, it essentially repeats headers correctly two or three times and then picks up with repeating EVERY header.

I'm not sure why this is. Is there something that I need to change in the script? All of the questions are in the same Matrix format so I am unsure why one of them in particular is not working.

0 replies

Be the first to reply!

Leave a Reply