Thomas Gibbons Consulting Qualtrics Wiki

Contact TomG on Qualtrics Community

User Tools

Site Tools


carryforwardplusna

carryForwardPlusNA - Add 'None of above' to carry forward choices to retain random order

The carryForwardPlusNA function moves non-carryforward choices to the bottom of the choice list. This allows for 'Other' or 'None of these' choices to be added to the list of carry forward selected choices while retaining the randomized order from the initial question.

This function is available for a reasonable fee. Contact TomG on the Qualtrics Community to learn more.

Set-up Instructions

Survey Header

Add the carryForwardPlusNA function to the survey header to make it available to any question in the survey. Go to Look & Feel → General → Header edit → and paste the provided carryForwardNA function JS:

<script>/*Paste carryForwardPlusNA function JS here*/</script>

Alternatively, paste the carryForwardPlusNA function JS into a question's JS outside the existing Qualtrics functions to make it available to questions on the page.

Question Setup

  • Configure carryforward of selected choices from a previous question.
  • Add non-carryforward choices to the question.

Question JavaScript

Add JS to call the carryForwardPlusNA function to apply it to the multiple choice question as follows:

Qualtrics.SurveyEngine.addOnload(function() {
	carryForwardPlusNA(this);
});

To override the default options, specify the desired options is the second function argument as an object. For example:

Qualtrics.SurveyEngine.addOnload(function() {
	carryForwardPlusNA(this,{notmatch:'xx'});
});

Options

notMatch

The carryForwardPlusNA moves non-carryforward choices to the bottom of the list. By default, it moves choices whose choice ids don't start with 'x'. If you have a carryforward of a carryforward it might be necessary to move choices that don't start with 'xx' and so forth. The notMatch option lets you change the not match string.

Default: "x"

Qualtrics Wiki

carryforwardplusna.txt · Last modified: 2023/09/24 15:47 by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki