I have a survey with a question that results in the need to show a table cell in a subsequent question with one of 3 different background colors.
So, let's say I have:
Question Code "Status" has answer codes Yes, No, Maybe
And then in Q2, I want to render a table with a cell that has a background colour that is Green for Yes, Red for No, and Yellow for maybe.
I figure I should be able to code this:
Code:
<td style="background-color: {if(Status=="Yes", "#C5E0B3",if(Status=="Maybe","#FFFF99","#FF908A"))}; text-align: center;">
When I do that, I get this HTML rendered:
Code:
<td style="background-color: #<span id='LEMtailor_Q_13539_2'>FF908A</span>; text-align: center;">
Am I doing something wrong, or is what I want to do not possible (or is there a better way to do it)?