How to add a label to each slider using JavaScript (or another solution) | XM Community
Question

How to add a label to each slider using JavaScript (or another solution)

  • 1 July 2021
  • 1 reply
  • 86 views

Badge

I have one block with many sliders for 94 statements. Qualtrics only lets me add labels to the top slider but I would like the same two labels (on either side, representing 1 and 100) repeated for every slider. I've seen that you can implement this using Javascript but I haven't been able to find the actual code anywhere. Any help would be much appreciated 😀.


1 reply

Userlevel 7
Badge +22

You can use the below JS to repeat the slider numbers (copy and paste the same line and change the number 3 as needed):
jQuery(".labels-container").clone().appendTo(".slider-container:eq(3)");

Leave a Reply