I’m using the javascript code that
However, I’d like to put the words “Not bothering me” and “Bothers me greatly” plus an image below the scale at opposite ends. In other words, I don’t want any labels above the NPS question scale.
Can anyone help this non programmer with altering TomG’s code below to do this? Many thanks.
Qualtrics.SurveyEngine.addOnload(function() {
//Market In View LLC
//Change NPS question scale
var scaleStart = 0; //Change - 0 or more and no greater than end
var scaleEnd = 6; //Change - 10 or less and no less than start
//No changes below
var width = 100/(scaleEnd - scaleStart + 1) + "%";
var q = jQuery("#"+this.questionId);
var cc = q.find('td.ControlContainer');
q.find('td.LabelContainer').each(function(index) {
if(index<scaleStart || index>scaleEnd) {
this.hide();
cctindex].hide();
}
else {
this.setAttribute('width', width);
cctindex].style.width = width;
}
});
});