How to count number of "Yes" responses in a matrix table question? | XM Community
Skip to main content

I had asked this question previously hoping that JavaScript could have been avoided, but it unfortunately can’t.

I’m hoping to set up a matrix table that, depending on the number of “Yes” responses (response options, from first to last column: “Yes,” “No,” “Unsure,” and “Prefer not to reply”) will either end the survey (e.g., if less than 3 Yes responses) or display another block of questions (4+ Yes responses). Is there a way, using JavaScript, to count the number of Yes replies in the matrix table (potentially updating an embedded data “YesCount”) in order to branch the survey?

Hi @dakotahu ,

 

Perhaps you can look at the survey flow and branch the flow based on the condition mentioned.

Branch 1: “Matrix table question, Yes(count), is lesser than, 3”

Branch 2: “Matrix table question, Yes(count), is greater or equal to, 4”

For illustration.

 


Leave a Reply