Side by Side Qs: can you create headers? | XM Community
Skip to main content
Question

Side by Side Qs: can you create headers?

  • November 18, 2019
  • 3 replies
  • 91 views

Is anyone able to add text in the area just above the categories in a side by side Questions? Please see the photo. !

3 replies

AliLN
Level 2 ●●
Forum|alt.badge.img+5
  • Level 2 ●●
  • November 18, 2019
This option is listed as a Label under the matrix question type.

Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • Level 8 ●●●●●●●●
  • January 20, 2023

Hi there, if you still need, text can be added to that area by adding one of the below to the OnReady section of the question's JavaScript:
jQuery("#"+this.questionId+" td.c1:first").html("Label Text 1");

jQuery("#"+this.questionId+" td.c1.BorderColor:first").html("Label Text 2");
SBS_Headerlabel.pngI found it here. Also, if you want to group the statements under header rows, I put together some code in this post that might help.


ArunDubey
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+41
  • QPN Level 8 ●●●●●●●●
  • January 20, 2023

Surveys4Fun you can simply paste below code inside javaScrit pad (Side Menu --> Question Behavior --> JavaScript) under addOnload() function.


jQuery (".Answers td:first-child").html("

Header Text

");

Replace "Header Text" with header name inside of that code.
Header1.PNG
PS. This will work correctly only if you are showing one question per page.