I have a matrix table to which I'm piping in responses from several prior multiple choice (single response) questions. When a person answers anything other than "I don't know" to the prior questions, it works fine. However, when the person answers "I don't know" to any of those questions, I do not want the "I don't know" as a row to which the person can respond in the matrix table. In other words, I want the matrix table to only show rows for those questions to which a person did not give an "I don't know" answer. (So the number of rows will vary depending on the number of the person's "I don't know" answers to the prior questions.) I tried using display logic on the rows so that the rows would only display when "I don't know" was not selected, and this did hide the wording "I don't know," but the problem is that it did not hide the row itself so that now the row itself with the radio buttons is still there but it has no wording associated with it. How can I get rid of the whole row, including the radio buttons, when a person answers "I don't know" for that particular item? I think I need to put Javascript in. I tried the below from bits and pieces I got off the internet, but obviously it didn't work. I also need to include this snippet in there too jQuery(".choiceText").hide(); but I'm not sure where or how to include it. (This part does work.) Thanks for any help you can provide!
if ('${q://QID88~93/ChoiceGroup/SelectedChoices}'= ‘I don't know’)
{jQuery(("#QR~"+this.questionId+"~"+cell).replace(/~/g, "\\\\~")).closest("td").find("*").hide();}