can i add dynamic image to a survey question? | XM Community
Skip to main content
Question

can i add dynamic image to a survey question?

  • January 25, 2021
  • 5 replies
  • 118 views

i need to add an image to a survey question but the image path needs to come from embedded data, which is imported via csv
1 idea i got is to put the image name in the csv then upload the image into XM, then in the csv image path point to that image
is there a better way?

5 replies

pogi
Level 2 ●●
Forum|alt.badge.img+14
  • Level 2 ●●
  • 151 replies
  • January 25, 2021

You could use a json object to get the image and added to embeddedData which you could then add to img path.
Or if it is contact related you can add the id as embeddedData and pull it through webservice.


  • Author
  • 15 replies
  • January 27, 2021

using json object to get the image: do u mean the json object will contain the image base64 string?
added to embeddedData : so the embeddedData will contain the img path?


pogi
Level 2 ●●
Forum|alt.badge.img+14
  • Level 2 ●●
  • 151 replies
  • January 27, 2021

Are the images uploaded your graphics library?

I'm not sure if the base64 string would work. But, if you use the contact list to store the link or the image ID then you would just make an API call to pull the image url or the image ID into the html of the image tag.


  • Author
  • 15 replies
  • January 28, 2021

how would i make an api call inside qualtrics?


pogi
Level 2 ●●
Forum|alt.badge.img+14
  • Level 2 ●●
  • 151 replies
  • February 2, 2021

You can use the contact authenticator in survey flow. If you pre-populate via URL encoded data the user won't have to input anything. Then the authenticator can pull the data from the contact list.


Leave a Reply