User Tools

Site Tools


skipfollowup

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
skipfollowup [2023/09/24 16:55] – [skipFollowUp - Automatically answer a follow-up question with one choice] adminskipfollowup [2025/09/07 18:38] (current) admin
Line 1: Line 1:
-====== skipFollowUp - Automatically answer a follow-up question with one choice ====== +====== skipFollowUp - Replaced by autoAnswer ====== 
-The **skipfollowup** function automatically answers follow-up questions with only choice. The single choice may be due to carryforward or choice display logic. It works with the following types of questions: +The **skipfollowup** function has been replaced by **[[autoanswer|autoAnswer]]**
-  * Multiple choice (single or multi-select) +
-  * Constant Sum (text entry or slider) +
-  * Rank Order (any format: Drag and drop, Radio buttons, Text box, Select box) +
-  * Pick, Group, and Rank with one group +
- +
-It includes support for: +
-  * Previous button (see **[[skipfollowup#Previous Button Support]]**) +
-  * Constant sums of any total +
- +
-The skipped question can be prevented from flashing on the screen (see **[[skipfollowup#skipFollowUp Question]]**). +
- +
-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 ===== +
-==== 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. Go to Look & Feel -> General -> Header edit -> {{::icon_source.jpg?20|}} and paste the provided skipFollowUp function JS: +
-<code> +
-<script>/*Paste skipFollowUp function JS here*/</script> +
-</code> +
-Alternatively, paste the skipFollowUp function JS into a question's JS outside the existing Qualtrics functions to make it available to questions on the page. +
-==== skipFollowUp Question ==== +
-The skipFollowUp question can be a Multiple Choice, Constant Sum (text entry or slider) or Rank Order question. A skipFollowUp question must be the **ONLY** answerable question on the page. +
- +
-To prevent the 'skipped' question from flashing on the screen, set the embedded data field //opacity0// at the beginning of the survey flow: +
-<code> +
-opacity0 = opacity:0; +
-</code> +
-Then add the following below the question text using HTML View: +
-<code> +
-<style>.Skin { ${e://Field/opacity0} }</style> +
-</code>   +
-==== JavaScript Function Call ==== +
-Add JS to call the skipFollowUp function to apply it to the follow-up question as follows: +
-<code> +
-Qualtrics.SurveyEngine.addOnload(function() { +
- skipFollowUp(this); +
-}); +
-</code> +
- +
-To override the default options, specify the desired options in the second function argument as an object. For example: +
-<code> +
-Qualtrics.SurveyEngine.addOnload(function() { +
- skipFollowUp(this, {noPrevFlag:"Q1_noPrevFlag"});  +
-}); +
-</code> +
-==== Previous Button Support ==== +
-To support the Previous Button, add this JS to the question that immediately follows the follow-up question: +
-<code> +
-Qualtrics.SurveyEngine.addOnReady(function() { +
- //Script for the page after the skipFollowUp() to hide Previous button if previous question had one answer.  +
- if("${e://Field/Q1_noPrevFlag}" == "1") this.hidePreviousButton(); //Update embedded data field name! +
-}); +
-</code> +
-Where the embedded data field name matches the name of the noPrevFlag option in the skipFollowUp function call. +
-===== Options ===== +
-==== noPrevFlag ==== +
-**noPrevFlag** is that name of the embedded variable that will be used to hide or show the Previous Button on the next page following the skipFollowUp question. +
- +
-Default: %%""%% (empty) +
-==== csumTotal ==== +
-**csumTotal** specifies the total amount for constant sum questions. +
- +
-Default: %%"100"%%+
 ====== Qualtrics Wiki ====== ====== Qualtrics Wiki ======
 [[start|Qualtrics Wiki]] [[start|Qualtrics Wiki]]
  
skipfollowup.txt · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki