- Posts: 36
- Thank you received: 4
I have a the following design:
Q1 - Answer (yes|no)
Q2 - ((Q1.NAOK == "A2")) i.e. appears if Q1 = no : Answer (yes|no)
Q3 - ((Q2.NAOK == "A2")) i.e. appears if Q2 = no
The answers to Q1 are "yes" OR "no"
If the answer to Q1 is "no" I ask Q2
The answers to Q2 are "yes" OR "no"
If the answer to Q2 is "no" I ask Q3
If the subject answers question 1 with "no" ; question 2 with "no"
and then goes back and changes the answer to question 1 to "yes"
I still see question 3 on the screen.
Is there a way of making sure that question 3 is not shown if the answer to question 1 is changed from "no" to "yes" ?
That can be a bug or an issue related to ExpressionScript (soon to be name for ExpressionManager).
advanz_lu wrote: If the subject answers question 1 with "no" ; question 2 with "no"
and then goes back and changes the answer to question 1 to "yes" I still see question 3 on the screen
Can you provide the Version of LimeSurvey you use and a Demo survey with just these questions (LSS-export)?
Thanks, I have attached your survey here in the thread. The Demo installation is reset from time to time.
You cannot use the refresh function of the browser to reset the session and answers.
advanz_lu wrote: Then Ctrl-F5 and
In an earlier post you wrote
which is a different thing that Ctrl+F5.
advanz_lu wrote: then goes back and changes the answer
A Survey-URL with&newtest=Y (which is used when you click the preview button) will use a new session.
Most respondents are used to the fact that reload button shouldn't be use in surveys.
But more and more webapplications are using GET parameter do handle even browser controls.
LimeSurvey is currently not able to handle browsercontrols (like back/forth, reload).
When I said "the user goes back" I meant that the user selects yes, yes, no and then changes the first yes to no
OR the user selects no, no, yes and then changes the first no to yes.
Sorry if that wasn't clear.
advanz_lu wrote: (Q182 - "What is the reason for not applying..." is still there)
Now to your main issue.
You can add more conditions or even better switch to relevance equations to check on more than one question.
You chose conditions. Why don't you just add another condition? In the same scenario you have a AND. If you choose a different scenario you have a OR.
The best approach is using question relevance.
E.g. a question is shown when Q180=A1 and Q181=A1 can be written as
(Q180.NAOK == "A1") && (Q181.NAOK == "A1")
Somestimes question releavance and conditions will not work with questions on the same page.
That is sometimes a bug. The workaround is to place questions in different groups. That way you prevent unclear answer situations.