mfcssliders
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mfcssliders [2022/09/30 13:39] – admin | mfcssliders [2025/02/19 11:26] (current) – [Custom Validation] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== mfCsSliders - Mobile-friendly Constant Sum Sliders ====== | ====== mfCsSliders - Mobile-friendly Constant Sum Sliders ====== | ||
| - | The **mfCsSliders** function converts a Qualtrics Slider question into a Mobile-friendly constant sum slider question. This function was created because Qualtrics constant sum sliders are **NOT** mobile-friendly. Functionality includes: | + | The **mfCsSliders** function converts a Qualtrics Slider question into a Mobile-friendly constant sum slider question. This function was created because Qualtrics constant sum sliders are **NOT** mobile-friendly. |
| - | * Support and automatic detection of Mobile and non-Mobile Friendly | + | |
| - | * Control of minimum spacing between scale labels | + | Functionality includes:\\ |
| - | * Turning display of the numeric scale on or off | + | * Optionally turn "must total" on or off |
| - | * Optional suppression | + | * Set "must total" to any amount |
| - | * Repeating | + | * Dynamic total calculation with visual indicators when equal to or over "must total" amount |
| - | * Highlighting of unanswered rows | + | * Supports addition |
| + | * Supports formatting | ||
| Example:\\ | Example:\\ | ||
| Line 14: | Line 15: | ||
| ===== Set-up Instructions ===== | ===== Set-up Instructions ===== | ||
| ==== 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 mfCsSliders function to the survey header to make it available to any question in the survey. Go to Look & Feel -> General -> Header edit -> {{:: |
| - | Add the mfCsSliders function to the survey header to make it available to any question in the survey. | + | |
| < | < | ||
| < | < | ||
| Line 31: | Line 31: | ||
| < | < | ||
| Qualtrics.SurveyEngine.addOnload(function() { | Qualtrics.SurveyEngine.addOnload(function() { | ||
| - | mfCsSliders(this, | + | mfCsSliders(this, |
| }); | }); | ||
| </ | </ | ||
| Line 46: | Line 46: | ||
| $e{ 100 - q:// | $e{ 100 - q:// | ||
| </ | </ | ||
| - | When the rows of the slider are conditional through the use of carry forward | + | When the rows of the slider are conditional through the use of carry forward, display logic, |
| < | < | ||
| Qualtrics.SurveyEngine.addOnload(function() { | Qualtrics.SurveyEngine.addOnload(function() { | ||
| Line 63: | Line 63: | ||
| **labelStyle** is an object that specifies css style of the scale labels. | **labelStyle** is an object that specifies css style of the scale labels. | ||
| - | Default: {" | + | Default: |
| ==== mustTotalAmt ==== | ==== mustTotalAmt ==== | ||
| **mustTotalAmt** is a numeric value that specifies what the constant sum must total to when **[[mfcssliders# | **mustTotalAmt** is a numeric value that specifies what the constant sum must total to when **[[mfcssliders# | ||
| Line 75: | Line 75: | ||
| **prefix** is text that is shown before numeric values. | **prefix** is text that is shown before numeric values. | ||
| - | Default: "" | + | Default: |
| ==== suffix ==== | ==== suffix ==== | ||
| **suffix** is text that is show after numeric values. | **suffix** is text that is show after numeric values. | ||
| - | Default: " | + | Default: |
| ==== widths ==== | ==== widths ==== | ||
| - | **widths** is the width of the constant sum numbers in ems. An ' | + | **widths** is the width of the constant sum numbers in ems. An ' |
| Default: 3 | Default: 3 | ||
| ====== Qualtrics Wiki ====== | ====== Qualtrics Wiki ====== | ||
| [[start|Qualtrics Wiki]] | [[start|Qualtrics Wiki]] | ||
mfcssliders.1664559596.txt.gz · Last modified: by admin
