randomization of items from subsets | XM Community
Skip to main content

I need to present my survey takers with 15 questions. I additionally have 2 different conditions. In one condition, I would like 5/12 questions from subset A and 10/10 from subset B, and in the other condition I need 12/12 from subset A and 3/10 from subset B. I would like all of these questions to be in random order and with no repeating items. Is there a way to do this?
If I take a "question randomization" approach, I am not sure how to present the items from the subsets in random order. With my advanced randomization settings it has random items from subset A then random order from subset B in a fixed order, i.e. AAAAAAAAAABBBBB, but I would like random combinations, e.g. AABAABBAAAABAAB.
If I take the randomizer approach in survey flow, I can not figure out a way to do this without potentially showing repeated items while pulling from the entire subset.

A simple solution here would be to make use of an embedded data in the starting of the survey.
EX:
image.pngThis Embedded value will be updated by placing a JS in every question:
image.png
For each question, we are setting a tag whether this question was viewed or not based on which using a branch of logic we eliminate the question for the next round thereby you will have a unique set of questions for the next round.
The only manual work that you might need to do is have each question in its own block for the randomizer to select 5/12 questions per your requirement.


Thanks for the response!
I added this javascript to the individual questions (which are each in their own block):
Screen Shot 2022-03-24 at 4.58.38 PM.png
and added the embedded data with the Viewed_Question = no to the very beginning of my survey
Screen Shot 2022-03-24 at 4.59.57 PM.pngI then added a randomizer to show 15 different randomizers, 12 with all the subset A questions and 3 with subset B questions.
Screen Shot 2022-03-24 at 5.02.28 PM.pngHowever, I am still seeing repeated items. Can you tell what I am doing wrong, or what I need to do to stop seeing repeats?
Thanks!


Leave a Reply