Created
July 10, 2018 11:16
-
-
Save mattbloomfield/d06c25da2b48737001e891b7c33d62cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Qualtrics.SurveyEngine.addOnload(function () { | |
var that = this; | |
this.questionclick = function(event,element) { | |
var choices = that.getSelectedChoices(); // returns an array of all selected options | |
if (choices.length >= 6) { | |
// now reveal the question! | |
jQuery('#QID2').show(); | |
} else { | |
// or not | |
jQuery('#QID2').hide(); | |
} | |
} | |
}); | |
Qualtrics.SurveyEngine.addOnReady(function() { | |
// on page load, hide the question you want to use to display extra text | |
jQuery('#QID2').hide(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment