Star Slider: place question above the stars | XM Community
Solved

Star Slider: place question above the stars

  • 5 March 2020
  • 2 replies
  • 98 views

Userlevel 7
Badge +26
  • QPN Level 4 ●●●●
  • 216 replies
Hi,
I'm looking for a way to ask long questions in combination with a star slider.
Standard; the space for the text is very limited, so if you type a long question it appears on many lines.
I found this:
https://www.qualtrics.com/community/discussion/comment/3133#Comment_3133
that works great on desktop to combine long questions with the star slider;
however on mobile it becomes completely unusable.
So I thought, maybe a solution would be to make the question text appear above the stars, instead of next to them.
Is there a way to do that?
Thanks,
Joyca
icon

Best answer by TomG 5 March 2020, 20:32

View original

2 replies

Userlevel 7
Badge +27
Try:
```
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" tr").each(function() {
var row = jQuery(this);
var th = row.before("<tr></tr>").find("th").attr("colspan","4").css("text-align","left");
row.prev("tr").append(th);
});
});
```
Userlevel 7
Badge +26
Thanks @TomG, it works 😀

Leave a Reply