How to get multiple choice answer for another question addOnPageSubmit? | XM Community
Skip to main content

I have a survey page with two questions, one descriptive and one multiple choice. How can I get the value of the multiple-choice in the JS of the first question?

Q1 JS:
Qualtrics.SurveyEngine.addOnPageSubmit(function() {
let Q2QID = Object.keys(Qualtrics.SurveyEngine.QuestionInfo)[1] // use the second question
jq = jQuery("#"+ Q2QID) // ?
});

What I'm looking for is basically
Q2 JS:
Qualtrics.SurveyEngine.addOnPageSubmit(function() {
    let selectedRecode = this.getSelectedChoices(); // correct
});

Similar to: https://www.qualtrics.com/community/discussion/4368/using-getchoiceanswervalue-for-a-question-other-than-this

Be the first to reply!

Leave a Reply