Within-subject design Survey Flow help | XM Community
Skip to main content

Hi all,

I hope this finds you well.

Please I need help on this. I have a within-subject design where each participants will see all conditions but in random order. I am using a vignette study with two conditions that need to be randomised.

I have been able to randomise the first condition using blocks and randomiser as can be seen in the screenshot below. Currently, I am trying to randomly assign images to each of this blocks and I want it in such a way that every block is assign an image only once and an image that is assign to a block should not appear in another block. Thanks for your help, Good people!

 

 

Hi @Rufai ,

Create a function to shuffle an array randomly. Say, 4,6,2,3,8,7,1,5]

Then, store the first element of that array in an embedded data 4]

Create an array with the image Urls from library as array elements (‘Image1_URL’, Image2_URL’…., Image8_URL)

Use this embedded data to pull the image URL element on 4th place. Now, in 2nd block, create a new array again with random number- from 1 to 8 then fetch the existing embedded data value and remove that from current array n1,5,6,2,8,3,7]. Then update that embedded data value with first element of this array h1] and pull the image using URL at 1st place.

Repeat steps until you get all the images displayed.


Leave a Reply