Create cca 1000 questions with 1000 images from a file | XM Community
Solved

Create cca 1000 questions with 1000 images from a file

  • 31 March 2021
  • 2 replies
  • 26 views

Hi,
I'm doing an experiment in which I need to have questions of the following format:
"random_image_from_a_database.png
(simple multiple choice with answers from 1 to N) "
This would be simple to do with a lower number of images to choose from – one would just manually create N questions, copy one image to each one and set up the randomization. But I have generated around 1000 images and I need to use all of them this way. It would, of course, be arduous to do this by hand which is way I'm looking for a way to automate this process.
I could upload the images to the graphics library but I don't know how to make the questions draw from the library automatically. Is there a way to do that? Or is there a workaround?
Thank you, any help is appreciated!

icon

Best answer by ahmedA 1 April 2021, 13:05

View original

2 replies

Userlevel 7
Badge +21

If you can create a list of the links to those images, you could just add them to the loop and merge field and use that as src for the images.

Thank you! That seems to be the way to go.
However, the following doesn't show the image:
Scree plot
Am I doing something wrong?

EDIT: Got it! Just needed to add space next to the quotation marks.

Leave a Reply