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

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

  • March 9, 2021
  • 2 replies
  • 285 views

ahmcd23

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?


Best answer by ahmedA

Use this code:

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

2 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • Answer
  • March 9, 2021

Use this code:

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


Forum|alt.badge.img+1
  • July 27, 2022

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.😊