Skip to content

Instantly share code, notes, and snippets.

@mattbloomfield
Created July 10, 2018 11:16
Show Gist options
  • Save mattbloomfield/d06c25da2b48737001e891b7c33d62cf to your computer and use it in GitHub Desktop.
Save mattbloomfield/d06c25da2b48737001e891b7c33d62cf to your computer and use it in GitHub Desktop.
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