Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Is it possible to display a graphic from a merged field?

I have a graphic in a merged field that needs to be displayed in a question. Each respondent will have a unique graphic. The ID and the graphic path have been imported into the Password Data as shown below:

 ID    AutoQ23                                                                                                       
1001 <img src="[%GraphicsPath()%]1001.jpg" alt="" border="0">   
(max respondents = 1)

Is it possible to reference the graphic from the Password Data field AutoQ23 for display later in the survey. If yes, what is the syntax for calling in the graphic?

asked Aug 7, 2018 by jrasmussen720 (255 points)

1 Answer

+2 votes
Instead of putting the whole HTML into the merged field value, just put the unique image name:


Then you can display the image in your survey with code like this:

<img src="[%GraphicsPath()%][% mergedField1 %]"/>
answered Aug 7, 2018 by Zachary Platinum Sawtooth Software, Inc. (215,075 points)