Adding images to choices

Good afternoon,

I have a quick question. I’m planning to pull image names from an external table and display two images side by side by attaching them to choices. Since the image names will come from an external database, is it possible to reference a calculate field (that pulls in the image name) under the media::image::English (en) column in the choices tab?

Thanks in advance!

Welcome back to the community, @salomegass! Your image names will come up from an external database but where do you plan to upload the images for the choices?

Thanks for your reply @Kal_Lam!

Apologies for not explaining clearly. Essentially choice tasks are pre-defined in an external CSV table, with each row specifying two image filenames (e.g., Task1: A1B2C1D4E2 - A2B1C1D3E1). Then in the Kobo form I hope to pull the correct image filenames for each task, and display the two images next to each other. The way I was planning to do that was the following, though I am not sure it will work the way I was hoping:

  1. Upload csv file with 3 columns (task, image1, image2)
  2. Use pulldata calculations to pull both image names (i.e. imgA: pulldata(‘tasks’, ‘image1)’, ‘Task’, ${tasknum}) and imgB: pulldata(‘tasks’, ‘image2)’, ‘Task’, ${tasknum}))
  3. Display both images side by side using a select_one question using ${imgA} as the filenames under the media::image::English (en) column in the choices tab.

@salomegass, this post discussed previously should help you solve your issue: