Skip to content

Instantly share code, notes, and snippets.

@marketinview
Last active October 23, 2022 16:38
Show Gist options
  • Save marketinview/03989fe07ea96e8a9b5c to your computer and use it in GitHub Desktop.
Save marketinview/03989fe07ea96e8a9b5c to your computer and use it in GitHub Desktop.
Qualtrics: General JavaScript Process Framework. This is a just a general framework for a javascript that runs a process and returns an embedded data variable. It uses a hidden descriptive text question. #qualtrics #js #jq
Qualtrics.SurveyEngine.addOnReady(function() {
jQuery("#"+this.questionId).hide();
jQuery('#Buttons').hide();
var var1 = parseInt("${q://QID1/ChoiceTextEntryValue}");
//algorithm goes here to assign answer to variable answer
Qualtrics.SurveyEngine.setEmbeddedData('answer',answer);
jQuery('#NextButton').click();
});
@marketinview
Copy link
Author

marketinview commented Nov 14, 2017

See additional Qualtrics solutions at: https://qualtricswiki.tgibbons.com/doku.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment