How can I keep the slider handle hidden until someone clicks on the slider? | XM Community
Skip to main content
Solved

How can I keep the slider handle hidden until someone clicks on the slider?

  • July 8, 2020
  • 2 replies
  • 214 views

To avoid my participants from being anchored, I would like to hide the handle until they click somewhere along the slider. I am entirely new to Qualtrics and have never worked with code like this before. On this forum, I found this code:
var q = jQuery("#"+this.questionId);
q.find(".handle").css('visibility', 'hidden');
q.find(".track").on("click", function() {
jQuery(this).find(".handle").css('visibility', 'visible');
});
But when I go to Look&Feel -> Style -> Custom CSS and paste this code, nothing changes for me.
Any help would be greatly appreciated!

Best answer by rondev

Paste the code in the Add java script option of the slider question under onReady function as shown in below screenshot
image.png

2 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • July 8, 2020

Paste the code in the Add java script option of the slider question under onReady function as shown in below screenshot
image.png


  • Author
  • July 8, 2020

That did it, thanks a lot!!