Get question randomization in Javascript | XM Community
Skip to main content

Hi all, I have a Block (one screen) with ten questions, which are offered to respondents in a random order, using the regular question randomization function in Qualtrics. In a follow-up question in the next screen, I want to show respondents their answers in the same order as they got the questions. Therefore, I need to know what the randomization order was. Is there a way to retrieve this in Qualtrics through javascript? I have looked at the Qualtrics javascript API but couldn't find a relevant option. Thanks in advance!

Object.keys(Qualtrics.SurveyEngine.QuestionInfo)
will give you an array of QIDs in the order they are displayed on the page.


Perfect! Thanks so much!




Leave a Reply