View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05473 | Bug reports | Conditions | public | 2011-09-23 00:01 | 2011-09-27 22:35 |
| Reporter | jalerner | Assigned To | lemeur | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | no change required | ||
| Product Version | 1.90+ | ||||
| Summary | 05473: Conditional statement to display question 3 when question 1 is greater than question 2 fails | ||||
| Description | I am trying to use the conditional statement "Q1 Greater than Q2" to control the display of Q3. There are 3 question groups on the survey, each with one question. All three questions are Numerical Input and Mandatory. When the conditional statement evaluates to False, everything works fine: question Q3 is skipped, the survey responses are written to the database, and the questionnaire ends. However, when the conditional statement evaluates to True, the question group header for Q3 is displayed, the <<Previous and Next>> buttons are displayed, but the question itself is NOT displayed. Is this a known issue, and if so is there a fix anyone can recommend? Steps to reproduce are listed below, and I have attached the .lss file to this ticket. Thanks very much! **Actual survey can be accessed here: | ||||
| Steps To Reproduce | 3 question groups, each with one question. Section 1SBQ_01: In the past 3 months how many sexual partners have you had? conditions for question:
| ||||
| Additional Information | Actual survey can be accessed here: | ||||
| Tags | No tags attached. | ||||
| Attached Files | LimeSurvey Bug Report.txt (1,922 bytes)
Conditional statement to display question 3 when question 1 is greater than question 2 fails
I am trying to use the conditional statement "Q1 Greater than Q2" to control the display of Q3.
There are 3 question groups on the survey, each with one question. All three questions are Numerical Input and Mandatory.
When the conditional statement evaluates to False, everything works fine: question Q3 is skipped, the survey responses are written to the database, and the questionnaire ends.
However, when the conditional statement evaluates to True, the question group header for Q3 is displayed, the <<Previous and Next>> buttons are displayed, but the question itself is NOT displayed.
Is this a known issue, and if so is there a fix anyone can recommend?
Steps to reproduce are listed below, and I have attached the .lss file to this ticket.
Thanks very much!
-----------------
3 question groups, each with one question.
All questions are of Type Numerical Input
All questions are Mandatory
Section 1
--------------------
SBQ_01: In the past 3 months how many male sexual partners have you had?
conditions for question:
This question is always shown.
--------------------
Section 2
--------------------
SBQ_02: In the past 3 months, of the {INSERTANS:68629X870X10872} sexual partners you've had, how many were "casual" or "anonymous"?
conditions for question:
SBQ_01: In the past 3 months how many male sexual partners have you had?
Greater than
0
--------------------
Section 3
--------------------
SBQ_03: In the past 3 months, of the {INSERTANS:68629X870X10872} sexual partners you've had, how many were known, "primary" partners?
conditions for question:
SBQ_01: In the past 3 months how many male sexual partners have you had?
Greater than
SBQ_02: In the past 3 months, how many �casual� or �anonymous� sexual partners have you had?
-------------------- | ||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | 9487 | ||||
| I will donate to the project if issue is resolved | Yes | ||||
| Browser | IE9, FireFox 6, Chrome 14 | ||||
| Database type & version | waiting to hear back from server admin | ||||
| Server OS (if known) | Red Hat Enterprise Linux | ||||
| Webserver software & version (if known) | Apache 2.0 | ||||
| PHP Version | waiting to hear back from server admin | ||||
| Git branch / Pull Request URL | |||||
|
Please see http://docs.limesurvey.org/tiki-index.php?page=Setting%20conditions#Chained_conditions You need to copy the condition set on SBQ_02 to SBQ_03 |
|
|
Thanks so much for getting back to me. I thought I had included all of the conditions from prior questions, but I went back and re-checked, and it turns out I had missed one. Thanks again! |
|
|
you're welcome |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-09-23 00:01 | jalerner | New Issue | |
| 2011-09-23 00:01 | jalerner | Status | new => assigned |
| 2011-09-23 00:01 | jalerner | Assigned To | => lemeur |
| 2011-09-23 00:01 | jalerner | File Added: LimeSurvey Bug Report.txt | |
| 2011-09-23 00:04 | jalerner | File Added: limesurvey_survey_68629.lss | |
| 2011-09-23 00:20 | jalerner | File Added: Screen-Shot.png | |
| 2011-09-23 00:21 | jalerner | Issue Monitored: jalerner | |
| 2011-09-23 09:20 | lemeur | Note Added: 16317 | |
| 2011-09-23 09:20 | lemeur | Status | assigned => feedback |
| 2011-09-23 23:52 | jalerner | Note Added: 16319 | |
| 2011-09-23 23:52 | jalerner | Status | feedback => assigned |
| 2011-09-27 22:35 | lemeur | Note Added: 16340 | |
| 2011-09-27 22:35 | lemeur | Status | assigned => resolved |
| 2011-09-27 22:35 | lemeur | Resolution | open => no change required |
| 2011-09-27 22:35 | lemeur | Status | resolved => closed |