Use matrix answers in rank order question | XM Community
Skip to main content

I have a matrix where respondents select what times they are available to teach a class:

 

 

I then want to create a rank order question where they can rank their preference among the times they have selected. Here is a mock up of what I want, since I can’t get it to work:

 

 

When I attempt to use piped text, it, as expected, lists all answers from the matrix as a single choice for ranking, and only along one axis:

 

 

What I want, then, is for individual matrix answers to be concatenated along both axes and listed as independent options which users can rank, as in the mock-up. The entire matrix only requires one answer to be completed, so I can’t use piped text that assumes there will be an answer in a given row or column.

 

Is what I want possible? Am I using the wrong question format? I have considered using pick/group/rank, but then there is a preponderance of disordered options on the screen (though perhaps there are ways around that). I’m sure JS could be useful, but I’m not particularly good at it. Any help would be appreciated!

I would use display logic for this. Have all the options in the ranking question, but set display logic to only show each option if they selected it in matrix quesiton.


@krccfnf - It seems that a multi-select, multiple choice question would be better suited to your need rather than a matrix. You can add days as choice groups for organization if you would like.  Then just carryforward the select choices into your ranking question.

If interested, the mcColumns function could arrange the choices in rows by day if the screen size allows.


@TomG Thank you for the suggestion! Is there a way to carryforward the choice groups in multiple choice questions, however? If I use choice groups to indicate days, only the time slots are carried forward, which results in duplicates if someone selects the same times on different days (as the days are not appended to the answers). The alternative --including both day and time in the answers--is quite unwieldy compared to a matrix or accordion matrix.


Qualtrics doesn’t have a way to carry forward choice groups, but it just so happens that I have a pair of functions that do it: cfcgsSave/cfcgsAdd.

However, I was thinking that you would just include the day in the choice labels. You could include the day in the choice labels and use JS to hide them in the first question where you have choice groups.  Just put the days in a span with a class, then hide all the elements with that class.


Leave a Reply