Hi guys,
I'm wondering if something like this is possible (out of curiosity)
I have a Question with 5 options, and in a later question, I wish to show the corresponding image to the option that was selected.
E.g.:
Q1. Select one:
1
2
3 <- selected
4
5
Text Display: [Image 3 shown here]
Now.. The obvious solution to this? Just have 5x Text Display and use normal conditional routing. But I'm wondering, can I achieve the same result with expression manager?
I imagined something like this, however this will cause errors:
Code:
{if(Q1.NAOK == 1,
"<img src='https://via.placeholder.com/500x90.png?text=Image+1' />,
if(Q1.NAOK == 2,
"<img src='https://via.placeholder.com/500x90.png?text=Image+2' />,
if(Q1.NAOK == 3,
"<img src='https://via.placeholder.com/500x90.png?text=Image+3' />,
if(Q1.NAOK == 4,
"<img src='https://via.placeholder.com/500x90.png?text=Image+4' />,
if(Q1.NAOK == 5,
"<img src='https://via.placeholder.com/500x90.png?text=Image+5' />,
""
)
)
)
)
)}