How do I add a title to the first column of a Matrix table, but not the whole page? | XM Community
Solved

How do I add a title to the first column of a Matrix table, but not the whole page?

  • 9 March 2021
  • 2 replies
  • 153 views

Hi I'm using this code (which I got from this post: to add a heading to the first column of a matrix table in qualtrics:
var $jq = jQuery.noConflict();
$jq('.Headings .c1').html('Utility');
This works well, but it adds to the heading of every question on the page, is there a way to change it to just add it to the one question?


icon

Best answer by ahmedA 9 March 2021, 18:45

View original

2 replies

Userlevel 7
Badge +21

Use this code:

this.questionContainer.querySelector(".Answers").firstElementChild.innerText = "Utility"

Badge +1

Hi,
I am trying to figure out how to level up question text with / add second heading in matrix table. I tried to use the code but it does not work at all.

Where exactly it should be pasted?

Could it be because I already have another custom code for that question?

image.pngThank you.😊

Leave a Reply