Login
Register
Questions
Unanswered
Tags
Users
Ask a Question
Tips
Sawtooth Software Home
Most popular tags
cbc
lighthouse-9
acbc
ssi-web
maxdiff
ssi-web-8
javascript
cbc-hb
grid-question
constructed-list
unverified-perl
ssi-web-7
free-format
skip-logic
alternative-specific-design
select-question
choice-simulator
willingness-to-pay
cbc-latent-class
quota-control
mbc
acbc-hb
pass-in-fields
conditional-pricing
smrt
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?
Thanks.
ssi-web
asked
Aug 7, 2018
by
jrasmussen720
(
255
points)
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
[captcha placeholder]
To avoid this verification in future, please
log in
or
register
.
Your solution to the original question
Please only use this to answer the original question. Otherwise please use comments.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
1 Answer
+2
votes
Instead of putting the whole HTML into the merged field value, just put the unique image name:
1001.jpg
Then you can display the image in your survey with code like this:
<img src="[%GraphicsPath()%][% mergedField1 %]"/>
answered
Aug 7, 2018
by
Zachary
Platinum
(
215,075
points)
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
[captcha placeholder]
To avoid this verification in future, please
log in
or
register
.
...