Using labels multiple times for very long list of items | XM Community
Skip to main content
Solved

Using labels multiple times for very long list of items

  • March 2, 2018
  • 9 replies
  • 258 views

Forum|alt.badge.img
Is it possible to show the labels of a slider-question multiple times (as with matrix tables where you can show the headers above and at the bottom of the text...)? I have a rather long list of items, so it would be great to remind the respondents where the numbers stand for. Thanks!

Best answer by TomG

@Sigrid, You'll want to use jQuery to do it. You would find and clone the label row, then insert it after the last row for bottom labels or between other rows for middle labels.

9 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • March 2, 2018
You can write a JavaScript to do this.

Forum|alt.badge.img
  • Author
  • March 2, 2018
@TomG Thanks! Unfortunately, I am not familiar with using JavaScript in Qualtrics. Do you have any recommendation on how to edit the coding?

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • March 2, 2018
@Sigrid, You'll want to use jQuery to do it. You would find and clone the label row, then insert it after the last row for bottom labels or between other rows for middle labels.

Forum|alt.badge.img+1
How does this look? Can you provide an example?

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • April 30, 2018
Here is an example of the labels and grid labels copied to the bottom. You could copy one or the other instead of both if you wanted. You could also insert them between rows if you wanted. !

Forum|alt.badge.img+1
Thanks Tom. I was more referring to the JQuery

LaurenK
Former XM Community Team Member
Forum|alt.badge.img+13
  • Former XM Community Team Member
  • August 3, 2018
Hey @Sigrid! If you have any additional custom code questions, feel free to post them in our Developer Corner. This space is reserved for these types of questions so coders and programmers are more likely to answer them! P.S. They might assume that you already have a basic knowledge of programming and how to integrate it into Qualtrics. If you do not, we recommend checking out W3Schools and our pages on Adding Custom CSS and Adding JavaScript to get a basic understanding!

Forum|alt.badge.img+1
@TomG could you provide the JS that you used? I am trying to get the labels/numbers to appear on between each row.

  • October 22, 2020

TomG Hi, I found the following code in another question page to repeat the question at the bottom.
Qid = this.questionId;
jQuery("#" + Qid + " .QuestionText").clone().appendTo(jQuery("#"+Qid))'
Since I am not versed in javascript, could you please provide the code that would be needed to repeat the question in between other rows (above middle labels)?