Is it possible to change Min/Max of a slider dynamically? | XM Community
Skip to main content
Solved

Is it possible to change Min/Max of a slider dynamically?

  • August 28, 2025
  • 6 replies
  • 70 views

Forum|alt.badge.img+1

Hi everyone, I hope you’re doing well. I was working on survey and got the problem that because Max and Min value in a slider is number I can’t change it with embedded data. I tryed to do it with a code, but still no luck. My survey is otherwise working perfectly, but this one issue is holding me back. Does anyone know if there’s a way to dynamically change slider Min/Max values, without resorting to building fully custom sliders? Any guidance or suggestions would be greatly appreciated. Thanks so much for your time and support!

 

 

Best answer by TomG

@NGon,

Are you using ‘New Experience’ or not?

6 replies

kgillis
Level 6 ●●●●●●
Forum|alt.badge.img+30
  • Level 6 ●●●●●●
  • 144 replies
  • August 28, 2025

This may end up initially being more work then you wanted, but consider it... How many variables (min/max) are on the embedded data? If it is only a few then you could have a slider question for each, with display logic, then you could do a combined field in the data & analysis to bring all the data back together.


Forum|alt.badge.img+1
  • Author
  • 3 replies
  • August 28, 2025

This may end up initially being more work then you wanted, but consider it... How many variables (min/max) are on the embedded data? If it is only a few then you could have a slider question for each, with display logic, then you could do a combined field in the data & analysis to bring all the data back together.

Well, I was redesigning a system. Before, there were 20 different blocks, and inside each block were 3 sliders. I simplified it to just one block with 3 sliders, but that’s when I ran into this Max issue.

The Max value should depends on what the respondent chooses in a previous question. For example:

  • If the person selects 1, the Max would be 3,3,3.

  • If the person selects 5, the Max would be 9,6,11.

  • If the person selects 10+, the Max would be 16,9,14.

Because I redesigned the system specifically for speed (sometimes we need to quickly add or remove items from the sliders), I’d prefer not to have to recreate all those sliders again with display logic. The system is working perfectly overall, it’s only the slider range that’s letting me down.


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6084 replies
  • Answer
  • August 28, 2025

@NGon,

Are you using ‘New Experience’ or not?


Forum|alt.badge.img+1
  • Author
  • 3 replies
  • August 28, 2025

@NGon,

Are you using ‘New Experience’ or not?

You mean “New Survey Taking Experience”? No i am not.


Forum|alt.badge.img+1
  • Author
  • 3 replies
  • August 28, 2025

@NGon,

Are you using ‘New Experience’ or not?

Oh, I see, you can change range with it.Thank you. But do you know if I can do total sum with it also? Because defoult slider not constant sum not support total sum validation.


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6084 replies
  • August 29, 2025

@NGon,

It sounds like you want a constant sum slider.  You can’t dynamically change the slider scales.  You could use a constant sum with text boxes and use JS to change the text boxes to sliders and format as needed.