Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
16203Bug reportsSurvey takingpublic2020-05-07 17:02
Reporterjaybee21 Assigned ToDenisChenu  
PriorityhighSeveritypartial_block 
Status resolvedResolutionfixed 
Product Version4.2.x 
Fixed in Version4.2.2 
Summary16203: Multiple choice questions with "other" optionactivated: Setting an answer as "exclusive" and selecting it gives an error message
Description

If in a multiple choice question with a few answer options one option is set as "exclusive" AND the option "other" is activated, it is impossible to select that exclusive option and to continue with the survey. This scenario return an error message an request to fill in the input next to the "other" option. As this answer option is greyed out, it is impossible to fill something in. And furthermore, no input makes sense - because another option is supposed to be exclusive. I can reproduce this error with two different Limesurvey versions 4.x, whereas the exact same survey (I exported and imported it) in Limesurvey 3.x runs flawlessly. So this bug has something to do with the changes to version 4 I assume.

Steps To Reproduce

Set up a multiple choice question with 4 answer options and activate "other" additionally. Set e. g. option 3 as "exclusive". Run the survey, select option 3 (exclusive, so only 3 is possible then) and try to continue. Limesurvey will return an error message, asking you to fill in the input next to "other" (which is impossible if 3 is selected).

An example: If you have the following answer options and set C as exclusive, it should deactivated and grey out all remaining option:
A
B
C
D
Other: [input ____]

It works and if C is activated, all other options are greyed out. But proceeding to the next page is prevented as the input next to "other" is requested to be filled in with something. Which makes no sense and is not possible even if you try it.

Additional Information

This is my first bug report. Please bear with me if something is not up to your expectations.

TagsNo tags attached.
Complete LimeSurvey version number (& build)Version 4.2.0+200422
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database & DB-VersionMySQL->MariaDB (10.1.44-MariaDB-0ubuntu0.18.04.1)
Server OS (if known)Ubuntu 18.04
Webserver software & version (if known)Latest apache
PHP Version 7.3.16

Relationships

child of 13684 acknowledged Feature requests If the exclusive option is selected, the excluded options default to "missing" instead of "no" 

Activities

Stef_VDH1

Stef_VDH1

2020-04-29 19:17

reporter   ~57471

Dear Sir/Madam,

I have the same problem in LimeSurvey Version 4.1.18+200416.
When I implement the option "other" in a multiple choice question (type M), then the exclusive option (for option "I don't know") doesn't work and I can't proceed to the next page.
However, when I do not implement the option "other", then the exclusive option works perfect.
So, the problem lies with the option "other".

Do you have an idea how long it will take to fix this bug?

Thanks in advance for your efforts!

Kind regards,

Stef_VDH1

DenisChenu

DenisChenu

2020-04-29 19:36

developer   ~57472

Can you send a lss ?

When i test : i have this (with included lss)

Stef_VDH1

Stef_VDH1

2020-04-29 19:51

reporter   ~57473

Dear DenisChenu,

I see the same error messages as you when I try to proceed to the next page in the questionnaire.

Kind regards,

Stef_VDH1

DenisChenu

DenisChenu

2020-04-29 20:10

developer   ~57476

Then : Why you don't tell ?

DenisChenu

DenisChenu

2020-04-30 09:15

developer   ~57482

https://github.com/LimeSurvey/LimeSurvey/pull/1413

DenisChenu

DenisChenu

2020-05-07 17:02

developer   ~57617

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=29962

Related Changesets

LimeSurvey: master fd0dcf55

2020-05-07 17:02:09

DenisChenu


Committer: GitHub Details Diff
Dev: revert broken fix for 13684

Fixed issue 16203: Multiple choice questions with "other" with "exclusive" unable to submit
Fixed issue 16226: Invalid count on multi with exclude : broke logic and php vs js diff
Dev: revert https://github.com/LimeSurvey/LimeSurvey/commit/30a85bb9791d4650653276618a50e3fb1424f911
Dev: previous system have more issue than fix : order dependent
Dev: set sub-question with relevance to `0` to relevant (and to `N` value)
Dev: didn't set previous data to same data
Affected Issues
16203, 16226
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2020-04-28 22:38 jaybee21 New Issue
2020-04-29 02:30 cdorin Status new => confirmed
2020-04-29 02:30 cdorin Priority none => high
2020-04-29 19:17 Stef_VDH1 Note Added: 57471
2020-04-29 19:36 DenisChenu Note Added: 57472
2020-04-29 19:36 DenisChenu File Added: limesurvey_survey_multipleOther.lss
2020-04-29 19:36 DenisChenu File Added: Capture d’écran du 2020-04-29 19-35-28.png
2020-04-29 19:51 Stef_VDH1 Note Added: 57473
2020-04-29 20:02 DenisChenu Relationship added child of 13684
2020-04-29 20:10 DenisChenu Note Added: 57476
2020-04-30 09:15 DenisChenu Note Added: 57482
2020-05-07 16:21 DenisChenu Assigned To => DenisChenu
2020-05-07 16:21 DenisChenu Status confirmed => assigned
2020-05-07 17:02 DenisChenu Changeset attached => LimeSurvey master fd0dcf55
2020-05-07 17:02 DenisChenu Note Added: 57617
2020-05-07 17:02 DenisChenu Resolution open => fixed
2020-05-07 17:02 DenisChenu Status assigned => resolved
2020-05-07 17:02 DenisChenu Fixed in Version => 4.2.2