How can you adjust the length of the slider bar in the Slider question? | XM Community
Solved

How can you adjust the length of the slider bar in the Slider question?

  • 25 June 2018
  • 2 replies
  • 250 views

I need to decrease the size of the slider bar in the Slider bar question for a study I am running for my doctoral research (i.e., if it's normally, say, 400 pixels long, I need it to be more like 200 pixels long), and I know I should be able to do so using JavaScript but I have no idea where to start. Does anyone know how to do this? Or any resources that might be helpful? I haven't found anything like what I need in the Qualtrics API...

Thank you in advance!!
icon

Best answer by TomG 25 June 2018, 22:28

View original

2 replies

Userlevel 7
Badge +27
Within this question, find all the elements with a class of 'track' and change the max width to 200px:
```
jQuery("#"+this.questionId+" .track").css("max-width","200px")
```
Thanks, TomG! That did the trick. I really appreciate your help!

Leave a Reply