Adding "+" signs for postive slider scale values | XM Community
Skip to main content

Hi, 

I have the following slider scale question: 

How can I add “+” for the positive values (25-100) and integrate it into the current Javascipt code? 

Qualtrics.SurveyEngine.addOnload(function()
{jQuery("#"+this.questionId+" .numbers .first").text("-100%");
jQuery("#"+this.questionId+" .numbers .last").text("100%");
});

 

Thank you in advance!

Max 

Update your existing script with this.

 

Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
jQuery("#"+this.questionId+" .numbers .first").text("-100%");
jQuery("#"+this.questionId+" .numbers .last").text("+100%");
jQuery("#"+this.questionId+" .numbers li").eq(5).text("+25");
jQuery("#"+this.questionId+" .numbers li").eq(6).text("+50");
jQuery("#"+this.questionId+" .numbers li").eq(7).text("+75");
});

 

Output:
 

 


It worked!

Thank you Arun Dubey.

Best, 

Max


Leave a Reply