- Posts: 10
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Possible bug - Question web GUI editor
- kvandenouweland
- Topic Author
- Offline
- New Member
Less
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
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.
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.
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10635
- Thank you received: 3699
5 years 4 months ago #176299
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
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?
But then it can be confirmed as a bug?
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
5 years 4 months ago #176310
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Possible bug - Question web GUI editor
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.kvandenouweland wrote: But then it can be confirmed as a bug?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
5 years 4 months ago #176316
by DenisChenu
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.
Replied by DenisChenu on topic Possible bug - Question web GUI editor
In my opinion : inline HTML editor must be avoided if user didn't have html knowledgekvandenouweland 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.
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.