Javascript to include 'more than 6' as increment value in a slider | XM Community
Skip to main content
Question

Javascript to include 'more than 6' as increment value in a slider

  • February 10, 2025
  • 2 replies
  • 36 views

Forum|alt.badge.img+1

I am trying to add an increment value after the value 6- ‘more than 6’ on the slider scale. How should I write the javascript to include this in the in the slider question. Attached is the screenshot: 

 

 

2 replies

Forum|alt.badge.img+3

Hi ​@davgon1774,
One alternative I can suggest is instead of using any JS, you can use the below settings in the survey build to have that scale as follows:
 

It will display the output as follows: [Two things to keep in mind. 1) The data will have value “7” for More than 6. 2) Mobile friendly option must be kept disabled ]

 

 


Forum|alt.badge.img+1
  • Author
  • Level 2 ●●
  • 6 replies
  • February 10, 2025

 That’s a wonderful idea, however, I do want to show the value, so when I add the labels instead of the increments, it seems that they do not align as well- I’m curious to know if they were to scroll to the end, and ‘More than 6’ appears as a value shown. 

 


Leave a Reply