How to loop a block with randomized embedded data each time? | XM Community
Skip to main content

Hi there,

So my question is the following:
I have two lists of occupations using embedded data, each list consists of 10 occupation titles, and every time Qualtrics will draw one random occupation from each list.
So, my question is how can I repeat this operation another 4-5 times and each time a new occupation title is drawn from each list?
Profile table.png
I have tried the loop & merge feature, but I do not think it could achieve what I have in mind. Because pairs in loop & merge were fixed, I will not be able to randomize the two presented occupations. 

I’m wondering do you have any other suggestions on how to achieve this?

Thanks in advance!


Randomize one of the lists before the the loop & merge block and assign the random values to embedded data fields (e.g., row1=Cleaner, row2=Plumber, etc.). One way to do this would be to add the occupations as choices to MC question, randomize the choices, then use JS to hide the question and save the choice labels to embedded fields. Then pipe the embedded fields into one of the loop & merge fields. Another loop & merge field would be the other list of occupations. Randomize the loop & merge.


Leave a Reply