Hello everyone,
I am implementing a survey for a client that includes a lot of slider questions. We are using the modern layout that shows the answer chosen above the slider.
When you go on on the survey and come back to the page, or when an unanswered question does not let you leave the page, the number disappears.
Is there a way to keep the number showing in any circumstance?
Thank you in advance
Showing chosen response in slider
Best answer by Tom_1842
Hi there, I'm pretty pleased with this one. I adapted the below from this thread and it is set up to work for a slider question with 3 statements. Just add to the Onload section of the question's JS.
var qid = this.questionId;
var slider1 = jQuery("#"+this.questionId+" .ResultsInput:eq(0)").val();
var left1 = document.getElementById(qid + '~1~handle').style.left;
var slider2 = jQuery("#"+this.questionId+" .ResultsInput:eq(1)").val();
var left2 = document.getElementById(qid + '~2~handle').style.left;
var slider3 = jQuery("#"+this.questionId+" .ResultsInput:eq(2)").val();
var left3 = document.getElementById(qid + '~3~handle').style.left;
document.getElementById(qid + '~1~toolTip').style.left = left1;
document.getElementById(qid + '~1~toolTip').style.top = '-84px';
document.getElementById(qid + '~1~toolTipBox').innerHTML = slider1;
document.getElementById(qid + '~2~toolTip').style.left = left2;
document.getElementById(qid + '~2~toolTip').style.top = '-84px';
document.getElementById(qid + '~2~toolTipBox').innerHTML = slider2;
document.getElementById(qid + '~3~toolTip').style.left = left3;
document.getElementById(qid + '~3~toolTip').style.top = '-84px';
document.getElementById(qid + '~3~toolTipBox').innerHTML = slider3;
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
