Qualtrics: Can I custom the slider range with embedded data using javascript? | XM Community
Skip to main content

I want to create one single slider in Qualtrics where the min is always 0 and the MAX changes according to 4 different embedded data. I need help with the Javascript.
Why do I need one single slider? I need a single slider because I have 16 questions in total, and it is easier to recall 16 questions ID rather than 64 different questions ID. 
How should the slider change? I need the slider MAX to be either 1, 10, 100 or 177. Moreover, I always need to have 100 possible choices. Therefore, I need to introduce 2, 1, 0 and 0 decimals, respectively. 
Why Javascript? Qualtrics does not allow dynamic custom slider values.
What I have tried so far:

  1. I tried using the default options, but they are not helpful in this specific case.

  2. I tied looking for resolved questions on StackOverflow but only found this thread: https://community.qualtrics.com/XMcommunity/discussion/5963/dynamic-accessing-slider-value


Could you do four slider questions configured each the way you want (1, 10, 100, or 177), and have display logic to show the correct slider based on the embedded data? As far as 16 question IDs versus 64, you could have every related slider set the same embedded data value, since the user will only populate one of the four sliders in any of the 16 questions, if I understand correctly.


https://community.qualtrics.com/XMcommunity/discussion/comment/52401#Comment_52401Thank you for your suggestion! I would still prefer having one slider over four different ones. However, your suggestion could work for my case.
I appreciate your feedback because I did not think about this possibility. Thank you again.


nicco695 ,
You could add your own html slider (input type=range) to a text entry question. Use JS to adjust the max and step, hide the text entry and copy the slider value to the text input on submit.


Leave a Reply