View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
06241Bug reportsConditionspublic2012-06-22 10:05
ReporterDenisChenu Assigned ToTMSWhite  
PrioritynormalSeveritypartial_block 
Status closedResolutionno change required 
Product Version1.92+ 
Summary06241: Unable to have question with some condition on the same group
Description

I have a group with 2 question,
if i answer to question 1, i can't answer to question 2
and
if i answer to question 2, i can't answer to question 1

With a 1205XX version, i put condition like that:
(Q2.code=="") on Q1
(Q1.code=="") on Q2

It work like a charm, but with last version it don't work.

Steps To Reproduce

Import lss file, see if there are problem and test:
You have only the first group showing.

It don't work with mandatory or not question etc ....

Additional Information

I try too with:
(Q2.code!="YES") on Q1
(Q1.code!="YES") on Q2
(third group)

And with is_empty

It's a comportment modification in limesurvey, i think stable release don't have to have new issue/functionnality !

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)120613
I will donate to the project if issue is resolvedNo
BrowserFF12
Database type & versionMysql 5
Server OS (if known)debian/linux
Webserver software & version (if known)apache
PHP VersionPHP Version 5.3
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2012-06-21 10:40

developer   ~19428

Found it :

We have to use NAOK and not CODE, still a comportment modification on a stable release.

TMSWhite

TMSWhite

2012-06-21 13:30

reporter   ~19436

Denis-

That's not a bug. As you discovered, if you want to hide Q1 based upon the answer to Q2 (a later question), you need to use .NAOK. The fact that your survey worked in the past must have been related to other bugs that were fixed recently - e.g. see documentation here - http://docs.limesurvey.org/Upgrade+hints+for+version+1.92

DenisChenu

DenisChenu

2012-06-21 14:41

developer   ~19442

This system work with 1.92 120530 or 120516

It's not after an 1.91 upgrade but with 1.92 upgrade.

TMSWhite

TMSWhite

2012-06-21 15:13

reporter   ~19444

yes, there were fixes starting in 120605 to ensure optimal backwards compatibility to 1.91.

What were you actually trying to do? Looks like you wanted to have multiple questions on the page, but only show one at a time (e.g. each time you answer one, have the previous ones disappear). If so, that won't work as currently designed. Even if you do !is_empty(X.NAOK), or X.NAOK=='', that translates to LEMval('X'), and that always returns '' if the question is irrelevant. So, if you tried to have relevance on Q1 of !is_empty(Q2), that may work for two questions on the page; but as soon as you have more than two questions, it won't work.

DenisChenu

DenisChenu

2012-06-22 09:16

developer   ~19452

It work for me, i found the solution, but it work before, i think we have to keep active survey working in stable version.

I have:
What school : (list)
What university: (list).

User can't be in school AND university, but they have to be in school OR university.

Denis

Issue History

Date Modified Username Field Change
2012-06-21 10:32 DenisChenu New Issue
2012-06-21 10:33 DenisChenu File Added: limesurvey_survey_bug06241.lss
2012-06-21 10:34 DenisChenu Additional Information Updated
2012-06-21 10:40 DenisChenu Note Added: 19428
2012-06-21 12:51 c_schmitz Assigned To => TMSWhite
2012-06-21 12:51 c_schmitz Status new => assigned
2012-06-21 13:30 TMSWhite Note Added: 19436
2012-06-21 13:30 TMSWhite Status assigned => resolved
2012-06-21 13:30 TMSWhite Resolution open => no change required
2012-06-21 14:41 DenisChenu Note Added: 19442
2012-06-21 15:13 TMSWhite Note Added: 19444
2012-06-22 09:16 DenisChenu Note Added: 19452
2012-06-22 10:05 c_schmitz Status resolved => closed