Qualtrics.SurveyEngine.addOnload(function() { // Select the matrix table var matrixTable = jQuery("#" + this.getQuestionContainer().id + " table");
// Array of row indices to hide radio buttons (0-based index) var headerRows = [0, 2]; // Modify this array based on your header rows
// Iterate through the header rows and hide the radio buttons headerRows.forEach(function(rowIndex) { var row = matrixTable.find("tr").eq(rowIndex + 1); // +1 because of the header row row.find("input[type='radio']").hide(); }); });
@jet731 - Use choice groups (i.e., Assign to group). You don’t need JavaScript.
Hi,
This is probably a really stupid question, but how do I do that? It seems I have the option to “Add choice group” if I have this as a Multiple Choice question type, but under Matrix Table I do not see the option (see attached pic for all of my Matrix Table options). Thanks!