mcpointallocation
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mcpointallocation [2023/03/12 14:01] – created admin | mcpointallocation [2024/02/14 13:55] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== mcPointAllocation - Assign points or cost to each choice and calculate a total ====== | ====== mcPointAllocation - Assign points or cost to each choice and calculate a total ====== | ||
| - | The **mcPointAllocation** function enables points or cost to be assigned to each choice in a multiple choice question and calculates, displays and saves the total for the choices selected. It supports setting a maximum total and can be used to do an allocation or build a product with specific features. | + | The **mcPointAllocation** function enables points or cost to be assigned to each choice in a multiple choice question and calculates, displays and saves the total for the choices selected. It supports setting a maximum total and can be used to do a weighted |
| Features include: | Features include: | ||
| Line 6: | Line 6: | ||
| * Easy to configure | * Easy to configure | ||
| * Supports a maximum total | * Supports a maximum total | ||
| - | * Supports a base point allocation (e.g., price) | + | * Supports a base point allocation (e.g., |
| * Total displayed based on locale (e.g., thousands separator, decimal point, etc.) | * Total displayed based on locale (e.g., thousands separator, decimal point, etc.) | ||
| * Customizable total formatting | * Customizable total formatting | ||
| Line 12: | Line 12: | ||
| Here is a quick video demonstration: | Here is a quick video demonstration: | ||
| - | Coming soon | + | {{ :: |
| This function is available for a reasonable fee. Contact **[[https:// | This function is available for a reasonable fee. Contact **[[https:// | ||
| Line 23: | Line 23: | ||
| Alternatively, | Alternatively, | ||
| ===== Question Setup ===== | ===== Question Setup ===== | ||
| - | The mcPointsAllocation | + | The mcPointAllocation |
| ==== MC Choices ==== | ==== MC Choices ==== | ||
| - | Add the points or cost of each choice to the choice label inside a %%< | + | Add the points or cost of each choice to the choice label inside a %%< |
| < | < | ||
| <span class=" | <span class=" | ||
| Line 32: | Line 32: | ||
| If there is a maximum point allocation or price, add custom validation to the multiple choice question to pass validation if the hidden text entry question is less than or equal to the maximum. | If there is a maximum point allocation or price, add custom validation to the multiple choice question to pass validation if the hidden text entry question is less than or equal to the maximum. | ||
| ==== MC Question JavaScript ==== | ==== MC Question JavaScript ==== | ||
| - | Add JS to call the mcPointsAllocation | + | Add JS to call the mcPointAllocation |
| < | < | ||
| Qualtrics.SurveyEngine.addOnload(function() { | Qualtrics.SurveyEngine.addOnload(function() { | ||
| - | mcPointsAllocation(this); | + | mcPointAllocation(this); |
| }); | }); | ||
| </ | </ | ||
| Line 41: | Line 41: | ||
| < | < | ||
| Qualtrics.SurveyEngine.addOnload(function() { | Qualtrics.SurveyEngine.addOnload(function() { | ||
| - | mcSubChoices(this, | + | mcPointAllocation(this, |
| }); | }); | ||
| </ | </ | ||
| Line 60: | Line 60: | ||
| Default: 0 | Default: 0 | ||
| ==== label ==== | ==== label ==== | ||
| - | **label** is a string that specifies text label of the total. | + | **label** is a string that specifies |
| Default: %%" | Default: %%" | ||
| Line 68: | Line 68: | ||
| Default: %%" | Default: %%" | ||
| ==== max ==== | ==== max ==== | ||
| - | **max** is a numeric field containing the maximum total. When max=0 there is no maximum. When the total exceeds max, the total (including prefix and suffix) will be displayed in overMaxColor. | + | **max** is a numeric field containing the maximum total. When max=0 there is no maximum. When the total exceeds max, the total (including |
| Default: 0 | Default: 0 | ||
| Line 79: | Line 79: | ||
| Default: %%"" | Default: %%"" | ||
| - | ==== prefix | + | ==== suffix |
| **suffix** is a string that specifies the text to be shown after the total (e.g., %%" | **suffix** is a string that specifies the text to be shown after the total (e.g., %%" | ||
mcpointallocation.1678644086.txt.gz · Last modified: by admin
