A quick tip for Expression Manager:
- Use the condition editor (with the AND )
- Save , copy the expression on the question quick view
- Remove all condition
- Paste the condition with the AND
- Replace AND by OR
Denis
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
But I am not quite sure what you are trying, because it looks like you check if a question code equal to it's QID and the same for the group. This doesn't make much sense to me...
Read through
www.limesurvey.org/manual/Expression_Manager
which helps quite good to understand how the EM works. If you would like to reference to the Question ID instead of the question code (that you can define yourself), then you must follow the rules of the SGQA code. You can't just reference the QID directly.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
On the Expression Manager manual page there is an example of the SGQA code. It is quite simple.
S = Survey (Refers to the survey id)
G = Group (Refers to the group id)
Q = Question (refers to the question id)
A = Answer (refers to the answer id)
On the Expression Manager manual page there is an example of the SGQA code. It is quite simple.
S = Survey (Refers to the survey id)
G = Group (Refers to the group id)
Q = Question (refers to the question id)
A = Answer (refers to the answer id)
I am finding the information on that page too complex (and in the manual generally). The examples on relevance relate more to inserting previous answers than to the mechanics of writing a simple instruction to branch.
I am unable to evaluate the correctness of an expression, and don't see all the rules about syntax. So I'm just guessing at it again and again until something changes.
Whilst it's clear there are many powerful tools to aid development, there is a steep learning curve/high bar to understanding their proper use. There are many ways to misunderstand the information!
Definitely, Expression Manager is very complex and thus it is not learned in 5 minutes. This is advanced survey development, which will also require a little advanced learning and some time investment. There are also more pages.
However, it is impossible to explain the basics of EM in the forum. Here we can only help on specific problems and questions.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
So far I have put in about 120 hours over 6 weeks trying to figure out how Lime Survey works.
Some of that development has been straightforward to figure out. Other bits not so much. I am hoping another week will get me to a point where I can activate a 30-question survey.
It's not a complicated survey - it's probably about as simple as they come. Probably too simple to have considered as an example in the manual. It's just a bunch of forward jumps. But it's laborious typing it out in order to test the expressions. So I've spent about 90 of those hours just monkeying with the coding.
The expression example I put up earlier was meant to describe a jump from either of two answers, in the form of ((Question1 AND Answer 1) OR (Question 3 AND Answer 1)). The survey looks like it will have 3 or 4 extraordinarily long expressions of this sort, where any of over 20 questions will jump to the same point later in the survey. I expect it to look like ((Question1 AND Answer 1) OR (Question 3 AND Answer 1) OR (Question 7 AND Answer 1) OR ... (Question 19 AND Answer 1) OR (Question 25 AND Answer 1)).
But I have given my questions the same variable names as the question groups they are in. This may be why some of the jumps fail. Group 1 is called Access, Question 1 is also called Access. When I named them I did not understand the limitation about naming variables for use by expression manager. I still don't know anything beyond that one fact.
So I need to go back and rename all of the questions. Or find some other way of specifying the target in EM.
So I asked if I could use another identifier like QID. That didn't work, so I will go back and rename the questions. THen see if there are other jump failures from as-yet-unknown reasons.