cfcgs
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cfcgs [2022/11/11 10:14] – created admin | cfcgs [2023/09/25 09:30] (current) – [cfcgsSave/cfcgsAdd - Carry forward choice groups] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== cfcgsSave/ | ====== cfcgsSave/ | ||
| - | The **cfcgsSave** and **cfcgsAdd* functions work together to enable carry forward of choice groups for any combination of multiple choice and matrix questions. The **cfcgsSave** function saves the choice group data from the original question and the **cfcgsAdd** function adds groups to the question with carry forward. | + | The **cfcgsSave** and **cfcgsAdd** functions work together to enable carry forward of choice groups for any combination of multiple choice and matrix questions. The **cfcgsSave** function saves the choice group data from the original question and the **cfcgsAdd** function adds groups to the question with carry forward. |
| Features: | Features: | ||
| Line 7: | Line 7: | ||
| * Supports any combination of multiple choice and matrix questions in any order | * Supports any combination of multiple choice and matrix questions in any order | ||
| * Compatible with: | * Compatible with: | ||
| - | * [[carryforwardplusna|carryForwardPlusNA]] | + | |
| - | * [[choicegroupanchorexclusive|choiceGroupAnchorExclusive]] | + | |
| - | * [[mccolumns|mcColumns]] | + | |
| - | 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 ===== | ||
| - | ==== Add Function | + | ==== Add Functions |
| To make the functions available to all questions in the survey, copy the function to the Survey Header inside a script tag. Go to Look & Feel -> General -> Header edit -> {{:: | To make the functions available to all questions in the survey, copy the function to the Survey Header inside a script tag. Go to Look & Feel -> General -> Header edit -> {{:: | ||
| < | < | ||
| < | < | ||
| </ | </ | ||
| - | Alternatively, | + | Alternatively, |
| ==== cfcgsSave Function Call ==== | ==== cfcgsSave Function Call ==== | ||
| - | Add JS to call the **cfcgsSave** function from the original question where the choice groups are defined. Specify the name of an embedded data field the will contain carry forward data. Do NOT add the embedded data field to the survey flow (it is for temporary use only). If an embedded data field name is not specified the field QIDx_cfcgs will be used where QIDx is the question id. | + | Add JS to call the **cfcgsSave** function from the original question where the choice groups are defined. Specify the name of an embedded data field the will contain carry forward data. Do NOT add the embedded data field to the survey flow (it is for temporary use only). If an embedded data field name is not specified the embedded data field QIDx_cfcgs will be used where QIDx is the question id. |
| < | < | ||
| Qualtrics.SurveyEngine.addOnload(function() { | Qualtrics.SurveyEngine.addOnload(function() { | ||
| Line 27: | Line 27: | ||
| </ | </ | ||
| ==== cfcgsAdd Function Call ==== | ==== cfcgsAdd Function Call ==== | ||
| - | Add JS to call the *cfcgsAdd* function from the questions that include the carry forward choices (aka Matrix statements). Specify the name of the embedded data field used it the previous *cfcgsSave* function call. | + | Add JS to call the **cfcgsAdd** function from the questions that include the carry forward choices (aka Matrix statements). Specify the name of the embedded data field used it the previous |
| < | < | ||
| Qualtrics.SurveyEngine.addOnload(function() { | Qualtrics.SurveyEngine.addOnload(function() { | ||
cfcgs.1668179668.txt.gz · Last modified: by admin
