Possible bug - Question web GUI editor

More
1 month 6 days ago #176293 by kvandenouweland
kvandenouweland created the topic: Possible bug - Question web GUI editor
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
<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.

Please Log in or Create an account to join the conversation.

More
1 month 6 days ago #176299 by tpartner
tpartner replied the topic: Possible bug - Question web GUI editor
Use the editor in pop-up mode to avoid this.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

More
1 month 6 days ago #176301 by kvandenouweland
kvandenouweland replied the topic: Possible bug - Question web GUI editor
This is indeed working but more a workaround than a solution. For people with limited IT knowledge (who make the surveys) they intend to forget this often.

But then it can be confirmed as a bug?

Please Log in or Create an account to join the conversation.

More
1 month 6 days ago #176310 by jelo
jelo replied the topic: Possible bug - Question web GUI editor

kvandenouweland wrote: But then it can be confirmed as a bug?

As long as the issue is not reproducible under LS 3.X it is not confirmed as bug. LS 2.7.X is no longer in development.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Please Log in or Create an account to join the conversation.

More
1 month 6 days ago #176316 by DenisChenu
DenisChenu replied the topic: Possible bug - Question web GUI editor

kvandenouweland wrote: This is indeed working but more a workaround than a solution. For people with limited IT knowledge (who make the surveys) they intend to forget this often.

In my opinion : inline HTML editor must be avoided if user didn't have html knowledge ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!