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

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?

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.


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?


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.


how would i make an api call inside qualtrics?


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