View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05266Bug reportsConditionspublic2011-06-12 16:26
Reporteruser9586Assigned Tolemeur  
PrioritynormalSeverityminor 
Status closedResolutionwon't fix 
Product Version1.91+ 
Summary05266: Conditional cascades not working properly in javascript
Description

Assume a questionnaire with at least 3 questions, visible on the same page (or group), with each question depending only on a previous question:

  • Q1: yes/no
  • Q2: shown only if Q1 = yes
  • Q3: shown only if Q2 = yes

The javascript conditional engine seem to consider only direct dependencies. Start the questionnaire, answer in order:

  • Q1 yes (Q2 is shown)
  • Q2 yes (Q3 is shown)
  • Q1 no (Q2 is hidden, but Q3 is still visible because of the hidden Q2 value)

This problem seem to be present only in the javascript conditional engine.

Steps To Reproduce

Load the attached survey.
Answer no/no/yes to the first 3 questions.
Then answer 'yes' to the first question: the last 2 question remain visible, but they shouldn't.

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)10243
I will donate to the project if issue is resolvedNo
Browser
Database type & version-
Server OS (if known)-
Webserver software & version (if known)-
PHP Version-
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

lemeur

lemeur

2011-06-10 16:09

reporter   ~15403

This is by design: you need to copy the full condition chain otherwise several features using conditions fail.
See chained conditions in tyhe online doc.

c_schmitz

c_schmitz

2011-06-11 15:26

administrator   ~15409

Unless, of couse, you can provide a fix for that.

Issue History

Date Modified Username Field Change
2011-06-10 16:07 user9586 New Issue
2011-06-10 16:07 user9586 Status new => assigned
2011-06-10 16:07 user9586 Assigned To => lemeur
2011-06-10 16:07 user9586 File Added: limesurvey_survey_38328.lss
2011-06-10 16:09 lemeur Note Added: 15403
2011-06-10 16:09 lemeur Status assigned => closed
2011-06-10 16:09 lemeur Resolution open => won't fix
2011-06-11 15:26 c_schmitz Note Added: 15409
2011-06-12 16:26 user9586 Issue Monitored: user9586
2011-06-12 16:26 user9586 Issue End Monitor: user9586