Dear All,
I have a question about if statement. I want to put condition: if some certain answer is checked then write some text in a specific colour. But I have a problem to colour that text and put it in a new line, because when I do this for the first time everything is fine and it works properly, but after I do some another changes and save again, I got an error message.
The question looks like this:
Here is some code that works:
What are your answers? (please tick as many boxes as appropriate) {if(( E5_SQ001.NAOK == "Y" ),"WAUTHATISIMPESSIVE","")}
By selecting “X” I get this:
1. What are your answers? (please tick as many boxes as are appropriate) WAU THAT IS IMPRESSIVE
But I want to have a coloured text in a new line, and the code below works:
1. What are your answers? (please tick as many boxes as are appropriate)
{if(( E5_SQ001.NAOK)== "Y","<div></div><span style=color:#ff0000;>WAU THAT IS IMPRESSIVE</span>","")}
But when I click Edit again, I have this
1. What are your answers? (please tick as many boxes as are appropriate) {if(( E5_SQ001.NAOK)== "Y","
<div>
</div>
<span style="color:#ff0000;">WAU THAT IS IMPRESSIVE</span>","")}
When I click Save I get this error:
Any sugestions?
Thanks in advance.