Side by Side Qs: can you create headers? | XM Community
Question

Side by Side Qs: can you create headers?

  • 18 November 2019
  • 3 replies
  • 54 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

Userlevel 1
Badge +5
This option is listed as a Label under the matrix question type.
Userlevel 7
Badge +27

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.

Userlevel 7
Badge +33

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.

Leave a Reply