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

Get question randomization in Javascript


Forum|alt.badge.img+3

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!

Best answer by ahmedA

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

View original

3 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • 2028 replies
  • Answer
  • March 25, 2021

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


Forum|alt.badge.img+3
  • Author
  • 8 replies
  • March 25, 2021

Perfect! Thanks so much!


Forum|alt.badge.img+3
  • Author
  • 8 replies
  • March 25, 2021



Leave a Reply