How to write code to split one matrix (89 items) to four pages and randomize them.. | XM Community
Skip to main content
Dear community



I am currently trying to write Java Code for a matrix question with 89 items, that I would like to have fully randomized, but splitted over four pages (as the site gets too long and users have to scroll too much).



Anyone could help me out formatting this?
I think you can achieve this through "Randomization", "Carry Forward" and Display logic



- Create 4 question with the same statements

- Use choice randomization for all 4 question statements

- use subset option under "advance randomization" and assign any value let say 22 (for first 3 question) and 23 for last question.



Documentation on advanced randomization:

https://www.qualtrics.com/support/survey-platform/survey-module/question-options/choice-randomization/#AdvancedRandomization



- then for second question use "carry forward" option on the statement which not displayed in Q1



Documentation on carry forward:

https://www.qualtrics.com/support/survey-platform/survey-module/question-options/carry-forward-choices/



- Then for 3rd and 4th question apply display logic on each of the statements such as:

for the 3rd question: display option only if not displayed in Q1 and Q2

for the 4th question: display option only if not displayed in Q1, Q2, and Q3



Documentation on display logic on option:

https://www.qualtrics.com/support/survey-platform/survey-module/question-options/display-logic/#SettingAnswerChoiceDisplayLogic
you have to create 4 different questions and put these all in one block and randomize questions within block also randomize statements within each question.
@bansalpeeyush29 This is not possible. It is a matrix question, so 89 items are basically in one question. Which is why I couldt split it on several pages, as several questions can be represented on several pages, but not several items of one question on several pages. Thanks anyways for making time to answer! 🙂
@Mohammedali_Rajapakar_Ugam Thank you Mohammed. I have not come to the point to use carry forward, so I hope it works out!
@Mohammedali_Rajapakar_Ugam Based on what you suggested, I will have problems to read data. Is there a way that qualtrics then only gives me one list of the 89 items? I otherwise will have 4 times 89 questions and depending on randomization, sometimes a missing, sometimes a hit. Thus, It will be awfully costly to prepare the data, as I would have to step through it for each participant (which will be about 600).



Is there an option to preset this in Qualtrics?
Great question...



We will have to combine the answer from 4 questions in 1 main question (89 statements) which will be hidden from user and you can refer to only 1 question for your data and analysis...
@Mohammedali_Rajapakar_Ugam Thank you for your thoughts on this. That sounds great. But how am I implementing this in the survey?

Leave a Reply