Dear community,
Current setup: Ubuntu 16.04 LTS (latest patches)
Current version: 2.73.0
Questionaire with radio buttons and 3 possible answers.
A possible bug:
In our questions we use a 'if' statement to show messages to users depending on their choice. See Pictures example001_correctAnswerSelected and example001_WrongAnswerSelected as example of expected behaviour.
How to replicate:
1) Create a survey with a question called Q1 based on radio buttons and 3 answers for example
2) Add the line below, which will check which answer is selected and depending on this one show a message
Example Line to add
Code:
<span style="font-size:24px; color:red">{if(!is_empty(Q1) AND Q1!="A3","<strong>The answer you have selected is not correct<br />Please reconsider your answer</strong>","")} </span></p>
3) Save the question
Behaviour:
When pasting this as one line, it is added as one line in the GUI and handled correctly
See pictures bug_behaviour_001 + bug_behaviour_002
4)When editing the question again, the line is splitted in the gui on multiple lines and breaking the code.
So each time you have edit the code in source again so that the if-statement is only on one line.
See pictures bug_behaviour_003 + bug_behaviour_004
Note: in our case we use multiple languages so you have to do this for each language seperately and can't do mass editing.