bpsliders
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| bpsliders [2022/03/30 13:31] – [Custom Validation] admin | bpsliders [2023/09/24 16:52] (current) – [bpSliders - Bipolar or AHP Sliders] admin | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| {{ :: | {{ :: | ||
| - | 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 ===== | ||
| ==== Question Settings ==== | ==== Question Settings ==== | ||
| Line 25: | Line 25: | ||
| * Force response: recommended | * Force response: recommended | ||
| ==== Add Function To Survey ==== | ==== Add Function To Survey ==== | ||
| - | To make the function available to all questions in the survey, copy the function to the Survey Header inside a script tag: | ||
| Add the bpSliders function to the survey header to make it available to any question in the survey. | Add the bpSliders function to the survey header to make it available to any question in the survey. | ||
| < | < | ||
| Line 39: | Line 38: | ||
| </ | </ | ||
| - | To override the default options, specify the desired options in the second function argument as an object. For example: | + | To override the default options, specify the desired |
| < | < | ||
| Qualtrics.SurveyEngine.addOnload(function() { | Qualtrics.SurveyEngine.addOnload(function() { | ||
| Line 52: | Line 51: | ||
| ===== Options ===== | ===== Options ===== | ||
| ==== allowZero ==== | ==== allowZero ==== | ||
| - | **allowZero** specifies if zero (0) answers should be allowed. It works in conjunction with Qualtrics custom validation and [[bpsliders# | + | **allowZero** specifies if zero (0) answers should be allowed. It works in conjunction with Qualtrics custom validation and **[[bpsliders# |
| Default: true (on) | Default: true (on) | ||
| Line 62: | Line 61: | ||
| **highlightErrorStyle** defines the CSS style used for highlighting unanswered rows. | **highlightErrorStyle** defines the CSS style used for highlighting unanswered rows. | ||
| - | Default: 2px dashed red | + | Default: |
| ==== lwidth ==== | ==== lwidth ==== | ||
| **lwidth** ONLY applies to non-mobile friendly sliders and specifies the width of the slider labels in pixels. | **lwidth** ONLY applies to non-mobile friendly sliders and specifies the width of the slider labels in pixels. | ||
| Line 68: | Line 67: | ||
| Default: 120 | Default: 120 | ||
| ==== repeatScale ==== | ==== repeatScale ==== | ||
| - | **repeatScale** defines how often the numeric scale should be repeated if [[bpsliders# | + | **repeatScale** defines how often the numeric scale should be repeated if **[[bpsliders# |
| Default: 0 | Default: 0 | ||
| Line 80: | Line 79: | ||
| Default: false | Default: false | ||
| ==== suppressScaleMinus ==== | ==== suppressScaleMinus ==== | ||
| - | **suppressScaleMinus** specifies whether numeric scale minus signs should be suppressed | + | **suppressScaleMinus** specifies whether numeric scale minus signs should be suppressed |
| Default: true | Default: true | ||
| Line 93: | Line 92: | ||
| * Mobile friendly: On | * Mobile friendly: On | ||
| ==== Custom Validation ==== | ==== Custom Validation ==== | ||
| - | To not allow zeros ' | + | To not allow zeros, ' |
| * Not Empty | * Not Empty | ||
| * Not Equal to 0 | * Not Equal to 0 | ||
| Line 112: | Line 111: | ||
| }); | }); | ||
| </ | </ | ||
| + | ====== Qualtrics Wiki ====== | ||
| + | [[start|Qualtrics Wiki]] | ||
bpsliders.1648661464.txt.gz · Last modified: by admin
