This is an old revision of the document!
Table of Contents
matrixSelectAll - Select all non-exclusive answers for a statement in a multi-select matrix
The matrixSelectAll function changes an answer (aka scale point) in a multi-select matrix to a 'Select all' answer. Features include:
- Select all answer can be placed in any order (first, last, etc.)
- Compatible with exclusive answer (aka scale point)
- Compatible with mobile accordion format
- Compatible with back button
Here is a quick video demonstration:
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.
Set-up Instructions
Survey Header
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.
Select All Answer Setup
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>
Question JavaScript
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'});
});
Options
selectClass
The html class name of the span used to identify the Select/Deselect all choice. See Select All Answer Setup.
Default: 'selectAll'
