scaledmatrix
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scaledmatrix [2022/02/06 09:59] – admin | scaledmatrix [2024/04/30 06:45] (current) – [Matrix Question] admin | ||
---|---|---|---|
Line 4: | Line 4: | ||
Functionality includes: | Functionality includes: | ||
* Option for formatting single row matrix questions | * Option for formatting single row matrix questions | ||
- | * Option for formatting | + | * Option for formatting |
* Options for repeating headers in middle or on bottom | * Options for repeating headers in middle or on bottom | ||
* Supports scale images | * Supports scale images | ||
* Supports middle labels, not just end labels (unlike NPS question) | * Supports middle labels, not just end labels (unlike NPS question) | ||
+ | * Supports choice groups | ||
* Optionally control width of scale labels | * Optionally control width of scale labels | ||
* Optionally add and format scale dividers | * Optionally add and format scale dividers | ||
- | * Compatible with [[likerthighlightunanswered|likertHighlightUnanswered]] function | + | * Compatible with **[[matrixhighlightunanswered|matrixHighlightUnanswered]]** |
;#; | ;#; | ||
Line 20: | Line 21: | ||
;#; | ;#; | ||
{{ : | {{ : | ||
+ | |||
+ | This function is available for a reasonable fee. Contact **[[https:// | ||
===== Set-up Instructions ===== | ===== Set-up Instructions ===== | ||
==== Survey Header ==== | ==== Survey Header ==== | ||
- | To make the function available to all questions in the survey, copy the function to the Survey Header inside a script tag: | ||
Add the scaledMatrix function to the survey header to make it available to any question in the survey. | Add the scaledMatrix function to the survey header to make it available to any question in the survey. | ||
< | < | ||
Line 28: | Line 30: | ||
</ | </ | ||
Alternatively, | Alternatively, | ||
- | ==== Multiple Choice | + | ==== Matrix |
=== Question Settings === | === Question Settings === | ||
Set the following single choice Likert Matrix options: | Set the following single choice Likert Matrix options: | ||
Line 41: | Line 43: | ||
</ | </ | ||
- | To override the default options, specify the desired options in the second function argument as an object. For example: | + | To override the default |
< | < | ||
Qualtrics.SurveyEngine.addOnload(function() { | Qualtrics.SurveyEngine.addOnload(function() { | ||
- | scaledMatrix(this, | + | scaledMatrix(this, |
}); | }); | ||
</ | </ | ||
===== Options ===== | ===== Options ===== | ||
==== labelsBottom ==== | ==== labelsBottom ==== | ||
- | **labelsBottom** specifies whether scale labels should be repeated on the bottom. Set to true to turn on bottom labels | + | **labelsBottom** specifies whether scale labels should be repeated on the bottom. Set to true to turn on bottom labels. |
Default: false | Default: false | ||
==== labelsBottomMin ==== | ==== labelsBottomMin ==== | ||
- | **labelsBottomMin** specifies the minimum number of rows before bottom labels will be displayed when [[formatscaledmatrix# | + | **labelsBottomMin** specifies the minimum number of rows before bottom |
Default: 3 | Default: 3 | ||
- | ==== lastNA | + | ==== labelsMiddle |
- | **lastNA** specifies the last column as ' | + | **labelsMiddle** specifies how often middle repeat |
- | + | ||
- | Default: false | + | |
- | ==== middleLabels ==== | + | |
- | **middleLabels** specifies how often middle repeat | + | |
Default: 0 | Default: 0 | ||
+ | ==== labelsTopHide ==== | ||
+ | **labelsTopHide** specifies whether top scale labels should be hidden. Set to true to hide top scale labels. | ||
+ | |||
+ | Default: false | ||
+ | ==== NAcols ==== | ||
+ | **NAcols** specifies the number of ' | ||
+ | |||
+ | Default: 0 | ||
==== NAdividerStyle ==== | ==== NAdividerStyle ==== | ||
- | **NAdividerStyle** specifies the CSS style of the NA divider that separate the NA answer | + | **NAdividerStyle** specifies the CSS style of the NA divider that separate the NA columns |
- | Default: : "1px solid # | + | Default: : %%"1px solid # |
==== NAwidth ==== | ==== NAwidth ==== | ||
- | **NAwidth** is used to override the default width of NA column | + | **NAwidth** is used to override the default width of NA columns |
Default: 0 | Default: 0 | ||
Line 81: | Line 87: | ||
Default: [] (no dividers) | Default: [] (no dividers) | ||
==== scaleDividerStyle ==== | ==== scaleDividerStyle ==== | ||
- | **scaleDividerStyle** specifies the CSS style of the scale dividers when [[formatscaledmatrix# | + | **scaleDividerStyle** specifies the CSS style of the scale dividers when **[[scaledmatrix# |
- | Default: "1px solid # | + | Default: |
==== scaleImage ==== | ==== scaleImage ==== | ||
**scaleImage** specifies the url of the image that will be displayed above the scale. | **scaleImage** specifies the url of the image that will be displayed above the scale. | ||
- | Default: "" | + | Default: |
==== scaleLabels ==== | ==== scaleLabels ==== | ||
**scaleLabels** is an array that specifies the scale labels. | **scaleLabels** is an array that specifies the scale labels. | ||
- | Default: [" | + | Default: |
==== scaleLabelWidth ==== | ==== scaleLabelWidth ==== | ||
- | **scaleLabelsWidths** is an array that specifies the width of the scale labels. For example: [" | + | **scaleLabelsWidths** is an array that specifies the width of the scale labels. For example: [" |
Default: [] (blank) | Default: [] (blank) | ||
+ | ====== Qualtrics Wiki ====== | ||
+ | [[start|Qualtrics Wiki]] |
scaledmatrix.1644163192.txt.gz · Last modified: 2022/02/06 09:59 by admin