scaledmatrix
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scaledmatrix [2022/08/31 07:22] – 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 21: | Line 22: | ||
{{ : | {{ : | ||
- | This function is available for a reasonable fee. Contact [[https:// | + | This function is available for a reasonable fee. Contact |
===== 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 43: | 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, |
}); | }); | ||
</ | </ | ||
Line 55: | Line 55: | ||
Default: false | Default: false | ||
==== labelsBottomMin ==== | ==== labelsBottomMin ==== | ||
- | **labelsBottomMin** specifies the minimum number of rows before bottom scale labels will be displayed when [[formatscaledmatrix# | + | **labelsBottomMin** specifies the minimum number of rows before bottom scale labels will be displayed when **[[scaledmatrix# |
Default: 3 | Default: 3 | ||
Line 66: | Line 66: | ||
Default: false | Default: false | ||
- | ==== lastNA | + | ==== NAcols |
- | **lastNA** specifies the last column as ' | + | **NAcols** specifies the number of ' |
- | Default: | + | Default: |
==== 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 87: | 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.1661948545.txt.gz · Last modified: 2022/08/31 07:22 by admin