What is the correct JS code for calling out statements within a Matrix Table? | XM Community
Skip to main content

We would like to customize the statement text within our matrix table using JS code based off of a previously answered question in the survey. We were able to customize the question text using "qc.innertext" but I was wondering if there's a line of code to do the same for the statements within a matrix table set.
Here is the code line we used for the innertext:
qc = this.getQuestionContainer().querySelector(".QuestionText");
Role = "${q://QID2/ChoiceGroup/SelectedChoices}";
if (Role == "Student") {
qc.innerText = "Students in my concentration connect with me";


Thanks!

Why aren't you using carry forward choices for this?


ahmedA
Will the data be grouped together with carry forward choices? I would like to group the data together in the Report.


I don't know what "group the data" means.


Leave a Reply