The matrixSelectAll function changes an answer (aka scale point) in a multi-select matrix to a 'Select all' answer. Features include:
Here is a quick video demonstration:
Here is a quick demonstration of a transposed matrix:
To select all choices in multiple choice question see mcSelectAll.
This function is available for a reasonable fee. Contact TomG on the Qualtrics Community to learn more.
Add the matrixSelectAll function to the survey header to make it available to any question in the survey. Go to Look & Feel → General → Header edit → and paste the provided matrixSelectAll function JS:
<script>/*Paste matrixSelectAll function JS here*/</script>
Alternatively, paste the matrixSelectAll function JS into a question's JS outside the existing Qualtrics functions to make it available to questions on the page.
To specify the 'Select all' answer (aka scale point), put the answer text inside a span with the class selectAll
(selectAll
is the default class and can be changed in options). For example:
<span class="selectAll">All options</span>
There should be one and only one 'select all' answer.
Add JS to call the matrixSelectAll function to apply it to the multiple choice question as follows:
Qualtrics.SurveyEngine.addOnload(function() { matrixSelectAll(this); });
To override the default options, specify the desired options is the second function argument as an object. For example:
Qualtrics.SurveyEngine.addOnload(function() { matrixSelectAll(this,{selectClass:'altClassName'}); });
The html class name of the span used to identify the Select/Deselect all choice. See Select All Answer Setup.
Default: "selectAll"