How to add Percentages to Incremental Value on a Slider Question | XM Community
Skip to main content

I am trying to add percentage symbols for the values given on the increments for the slider question- is there a java code or some capabilities through qualtrics to allow me to do this? 

If you want to add % signs to the scale, you can do this (code for “New Experience” would be different):

Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+qobj.questionId+" ul.numbers li").each(function() {
this.innerText = this.innerText + "%";
});
});

 


When I add it to the java script, should it look like this? When I input it this way, I still don’t get the % symbols next the incremental values on the scale. 

 


Oops, I copied it from somewhere else and forgot to change a variable name.  Corrected:

Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" ul.numbers li").each(function() {
this.innerText = this.innerText + "%";
});
});

 


Leave a Reply