https://www.qualtrics.com/community/discussion/579/javascript-basics - for function on accessing previous answers
https://www.qualtrics.com/community/discussion/2640/javascript-code-for-show-and-hide-information- for jQuery hide function
I can't seem to get anything to work and when I look up the Qualtrics API library it doesn't really help me understand how to use the functions. This is the code I've tried:
Qualtrics.SurveyEngine.addOnReady(function()
{
if ("${q://QID3/ChoiceGroup/SelectedChoices}" == "${q://QID9/ChoiceGroup/SelectedChoices}")
{ jQuery("#QID11").hide();}
}
I'm comparing questions 3 and 9, which are singular slide scales from 0-10 and then trying to hide 11 if they answer 3 and 9 the same way.
Best answer by TomG
View original