I want to count the number of Yes responses in my overall Qualtrics survey using html or javascript.
I have this code that will work for a single question, but I need to have it work for more than one question within the survey. So it can count the number of Yes responses throughout the whole survey.
var item_count= "${q://QID1/SelectedChoicesCount}";
var Score = Number(Qualtrics.SurveyEngine.getEmbeddedData(‘SCORE));
var item_count= Number("${q://QID1/SelectedChoicesCount}");
Score = Score + item_count;
Qualtrics.SurveyEngine.setEmbeddedData( ‘SCORE, Score);
Any advice would be greatly appreciated.
Thank you!