Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Possible bug - Question web GUI editor

  • kvandenouweland
  • kvandenouweland's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 4 months ago #176293 by kvandenouweland
Possible bug - Question web GUI editor was created by kvandenouweland
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.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #176299 by tpartner
Replied by tpartner on 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
The topic has been locked.
  • kvandenouweland
  • kvandenouweland's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 4 months ago #176301 by kvandenouweland
Replied by kvandenouweland on 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?
The topic has been locked.
More
5 years 4 months ago #176310 by jelo
Replied by jelo on 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.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #176316 by DenisChenu
Replied by DenisChenu on 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 , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose