User Tools

Site Tools


cfcgs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cfcgs [2022/11/11 10:14] – created admincfcgs [2023/09/25 09:30] (current) – [cfcgsSave/cfcgsAdd - Carry forward choice groups] admin
Line 1: Line 1:
 ====== cfcgsSave/cfcgsAdd - Carry forward choice groups ====== ====== cfcgsSave/cfcgsAdd - Carry forward choice groups ======
-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]] +    * **[[carryforwardplusna|carryForwardPlusNA]]** 
-    * [[choicegroupanchorexclusive|choiceGroupAnchorExclusive]] +    * **[[choicegroupanchorexclusive|choiceGroupAnchorExclusive]]** 
-    * [[mccolumns|mcColumns]] +    * **[[mccolumns|mcColumns]]** 
  
-This function is available for a reasonable fee. Contact [[https://community.qualtrics.com/XMcommunity/messages/add/TomG|TomG]] on the Qualtrics Community to learn more.+This function is available for a reasonable fee. Contact **[[https://community.qualtrics.com/inbox/conversation?with=373|TomG]]** on the Qualtrics Community to learn more.
 ===== Set-up Instructions ===== ===== Set-up Instructions =====
-==== Add Function To Survey ====+==== Add Functions To Survey ====
 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 -> {{::icon_source.jpg?20|}} and paste the provided cfcgsSave/cfcgsAdd function JS: 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 -> {{::icon_source.jpg?20|}} and paste the provided cfcgsSave/cfcgsAdd function JS:
 <code> <code>
 <script>/*Paste cfcgsSave/cfcgsAdd functions JS here*/</script> <script>/*Paste cfcgsSave/cfcgsAdd functions JS here*/</script>
 </code> </code>
-Alternatively, paste the cfcgsSave or cfcgsAdd function JS into a question's JS outside the existing Qualtrics functions to make it available to questions on the page.+Alternatively, paste the **cfcgsSave** or **cfcgsAdd** function JS into a question's JS outside the existing Qualtrics functions to make it available to questions on the page.
 ==== 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.
 <code> <code>
 Qualtrics.SurveyEngine.addOnload(function() { Qualtrics.SurveyEngine.addOnload(function() {
Line 27: Line 27:
 </code> </code>
 ==== 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 **cfcgsSave** function call.
 <code> <code>
 Qualtrics.SurveyEngine.addOnload(function() { Qualtrics.SurveyEngine.addOnload(function() {
cfcgs.1668179668.txt.gz · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki