Best answer by Anonymous
View originalPosition of labels to flank slider
I have a slider question that has 22 items. Is there a way to have the 2 labels "bookend" each item on the left and right as anchor text for each item?
Updating this old thread because the answer from 2018 caused me issues.
More rigorous code (applies only to the question you put it in). Add in Qualtrics.SurveyEngine.addOnload:
For labels 'bookended' above each slider bar:
* jQuery("#"+this.questionId+" ul.labels").insertAfter("#"+this.questionId+" div.statement-container");
For labels 'bookended' below each slider bar:
* jQuery("#"+this.questionId+" ul.labels").insertAfter("#"+this.questionId+" div.slider-container");
More rigorous code (applies only to the question you put it in). Add in Qualtrics.SurveyEngine.addOnload:
For labels 'bookended' above each slider bar:
* jQuery("#"+this.questionId+" ul.labels").insertAfter("#"+this.questionId+" div.statement-container");
For labels 'bookended' below each slider bar:
* jQuery("#"+this.questionId+" ul.labels").insertAfter("#"+this.questionId+" div.slider-container");
A
Hello @TempleResearcher ,
Create two labels using Slider- Label option and paste the following code in the js(OnReady) of the Slider question
`jQuery("ul.labels").insertAfter(".statement-container");`
Create two labels using Slider- Label option and paste the following code in the js(OnReady) of the Slider question
`jQuery("ul.labels").insertAfter(".statement-container");`
Leave a Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.