Solved
Matrix headers for extremely long items
Hello, I have an extremely long Matrix item, and my client insist on it being on one screen.
It's so long that the repeat header option (which only displays 3 repetitions - top, middle, bottom) isn't enough to always have the item options on the screen. To fix this, is it possible to either:
* Freeze the column header options at the top of the screen while scrolling (preferred), or
* Add extra repeated headers?
Thanks for any help! -Matt
Best answer by Anonymous
Hello @MattyD ,
Check the 'All' option in the Repeat headers and then paste the below code in the js(onReady) of the matrix question.
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();}
}
This will repeat headers after 5 statements. To repeat headers after n number of statement then replace 5 with the n number.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
