Randomize order of image displayed with same 3 follow-up questions | XM Community
Skip to main content

I am relatively new to Qualtrics and have a limited (at best) experience with coding. I am hoping that someone might be able to help me with the following:

I have an array of 47 images and I want to display 1 image (at random) with three follow up questions per page. Each participant will answer the same set of three questions for each of the 47 images. However, I want the image order to be random for each participant and I want for the participant to see each picture once per survey. 

I have read various forums regarding choice/block randomization and the loop and merge function but I am struggling to apply these to my project. I have uploaded the 47 images into my “library” but I don’t know the best way to get the pictures from the library and into the survey. I saw another forum mention embedding each image URL into a multiple choice question and then implementing the choice randomization. However, I don’t want the participant to “choose” a picture (as they would for a multiple choice question), I want for the picture to display, at random, and for the survey respondent to answer the three questions following the randomly displayed image. 

Please let me know if anyone has any ideas, all help is welcome and appreciated :)

@rachelarp,

Use a loop & merge block. The block will have 4 questions, a text/graphic question to display the image and the three follow-up questions. Your loop & merge setup will have 47 rows, one for each image. Field 1 can be an image description and Field 2 the image url. Click the box at the bottom to randomize the loop.

Pipe the loop and merge fields into an <img> tag in your text/graphic question. For example:

<img alt="${lm://Field/1}" src="${lm://Field/2}">

 


Leave a Reply