Reuse randomly assigned image throughout survey | XM Community
Skip to main content
Solved

Reuse randomly assigned image throughout survey

  • 19 October 2023
  • 5 replies
  • 162 views

I’m new to qualtrics, and I would like to set up a survey that is essentially a series of questions about one image (showing the same image with each different question). I would like the image to be selected from a large set (such that each image is seen roughly the same number of times across all the surveys), but the questions to be the same and in the same order for every respondent. I would also like to record which image was shown in the survey. Is there a straightforward way of setting this up?

I’ve tried adding a couple images to my library and putting the urls into a loop and merge field, but I’m not sure how to make the piped text show up as an image, or how to make sure that the image is the same for each question in the survey.

Also, I’m looking to have over 1000 images in the dataset--is there an easier way than uploading all of them and pasting in urls individually?

5 replies

Userlevel 7
Badge +27

You can assign the image to an embedded data field.  If you make the value a html <img> tag you can just pipe the embedded data field.  For example:

image = <img alt='image name' src='image url goes here' style='max-width:100%;'>

Then pipe:

${e://Field/image}

You can drag and drop multiple images at a time to upload. If you upload their own folder, you can then go to Account → Qualtrics IDs, find the library and folder, and copy and paste all the ids to a spreadsheet. You can then use the ids to construct urls.

Badge +1

Thank you! So then how would you select one of the images for the survey using the embedded data? Can you upload the spreadsheet with the ids, and then use a random integer to select one of them? And if so, where would that spreadsheet go?

Userlevel 7
Badge +27

You can either use a survey flow randomizer or a MC question with advanced randomization. The later will be easier to set up, but you’ll need to use a bit of JS to select the displayed choice and hide the question.

Badge +2

@TomG There is now an extra step and this “Qualtrics IDs” short-cut may soon no longer be possible. Within Qualtrics “Account Settings"  you now need to click "Older Version" and then select the "Qualtrics IDs" tab and then go to the Libraries section to copy-paste 

You can assign the image to an embedded data field.  If you make the value a html <img> tag you can just pipe the embedded data field.  For example:

image = <img alt='image name' src='image url goes here' style='max-width:100%;'>

Then pipe:

${e://Field/image}

You can drag and drop multiple images at a time to upload. If you upload their own folder, you can then go to Account → Qualtrics IDs, find the library and folder, and copy and paste all the ids to a spreadsheet. You can then use the ids to construct urls.

 

Userlevel 7
Badge +27

@jben0 - If Qualtrics removes it, it won’t be the first time a useful feature has gone away.

Leave a Reply