Currently, images cannot be directly stored in a custom variable in QuestionPro. However, you can display an image dynamically by using the Media Library and storing the image’s HTML code in a custom variable.
To achieve this, follow these steps:
1. Upload the required image to the Media Library in your survey.
2. Click on the three-dot menu next to the uploaded image.
3. Select Get HTML to copy the HTML code for the image.
4. Paste this HTML code into a Custom Variable field. This can be done:
- Using Skip Logic / Update Variable logic with custom text, or
- By storing it in the Email List (custom variable field).
5. Call the variable in the survey using the tag ${custom_variable} wherever you want the image to appear.
Screenshot for reference:https://app.screencast.com/e56UmRXtcK7QO
When the custom variable is referenced in the survey, the stored HTML code will render the image dynamically on the page. This method allows you to reuse the same image across multiple questions or sections of the survey by simply referencing the custom variable."
Please refer to this help file for Media Library: https://www.questionpro.com/help/add-image.html