Code labels to individual sliders in single question? | XM Community
Solved

Code labels to individual sliders in single question?

  • 9 April 2021
  • 1 reply
  • 15 views

Hi all,
I would like to have a slider bar question for some semantic differential responses. All sliders would have the same question stem, so really, I would like to just have more choices for a single question, rather than making a new question for each semantic pair. But I would like to have one word on either end of the slider bar, like:
Happy |------------{}-----| Sad
Calm |-----{}-------------| Angry
Is this possible with some custom code? And if so, how?
Thank you!!

icon

Best answer by KMS1010 9 April 2021, 23:38

View original

1 reply

Nevermind. I found a post that answers it. You have to preview the question to see the results, but this code worked for me!
jQuery(".statement-container div").eq(0).append(" right side text 1 "); jQuery(".statement-container div").eq(1).append(" right side text 2 "); jQuery(".statement-container div").eq(2).append(" right side text 3 ");

Leave a Reply