Welcome, Guest
Username: Password: Remember me

TOPIC: Conditional branching; rapid prototyping

Conditional branching; rapid prototyping 3 months 4 weeks ago #111311

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
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
The administrator has disabled public write access.
The following user(s) said Thank You: dglp

Conditional branching; rapid prototyping 3 months 4 days ago #111834

  • dglp
  • dglp's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Karma: 0
testing... preview mode not working?

Aside from that, I'm trying to figure out the relevance expression syntax.

I can't figure it out by reading the manual.

I'd like to know if I can use things like QID and GID in the expression.

In an example like ((TopicList == "G01") AND (QID 619 == "A01")) I cannot figure out whether there's a valid way of using QID 619.

Have tried various ways of bracketing, quoting, and so forth with no success.
Last Edit: 3 months 4 days ago by dglp.
The administrator has disabled public write access.

Conditional branching; rapid prototyping 3 months 3 days ago #111835

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2961
  • Thank you received: 381
  • Karma: 124
From what I know, you should use the question code or group code instead the SGQA code. However, reading here manual.limesurvey.org/Expression_Manager#Key_Definitions it seems like the SGQA could still be used.

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 manual.limesurvey.org/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.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
The following user(s) said Thank You: dglp

Conditional branching; rapid prototyping 3 months 3 days ago #111836

  • dglp
  • dglp's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Karma: 0
Thank you holch.

I have having a lot of difficulty understanding the explanations of Expression Manager in the manual - so I am asking here.

Your link to SGQA code gives a 404 error.

It sounds like you answer my question in the final line: cannot reference QID directly.

In that case, I'm not able to figure out what else - if anything - can be referenced directly.

I see that some Names[ID] can be referenced, but is that the only thing?
Last Edit: 3 months 3 days ago by dglp.
The administrator has disabled public write access.

Conditional branching; rapid prototyping 3 months 3 days ago #111837

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2961
  • Thank you received: 381
  • Karma: 124
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)

Here the manual page for the SGQA identifier: manual.limesurvey.org/SGQA_identifier

Often it helps to search with "limesurvey xxxxx" in Google, which seems to work better than the actual search in the manual.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Conditional branching; rapid prototyping 3 months 3 days ago #111838

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2961
  • Thank you received: 381
  • Karma: 124
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)

Here the manual page for the SGQA identifier: manual.limesurvey.org/SGQA_identifier

Often it helps to search with "limesurvey xxxxx" in Google, which seems to work better than the actual search in the manual.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
The following user(s) said Thank You: dglp

Conditional branching; rapid prototyping 3 months 3 days ago #111839

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2961
  • Thank you received: 381
  • Karma: 124
Try also to understand the examples on the Expression Manager page. You can learn a lot from them and how Expression Manager works.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Conditional branching; rapid prototyping 3 months 3 days ago #111840

  • dglp
  • dglp's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Karma: 0
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!
Last Edit: 3 months 3 days ago by dglp.
The administrator has disabled public write access.

Conditional branching; rapid prototyping 3 months 3 days ago #111841

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2961
  • Thank you received: 381
  • Karma: 124
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.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Conditional branching; rapid prototyping 3 months 3 days ago #111842

  • dglp
  • dglp's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Karma: 0
Okay.
I appreciate the limitations of the forum.

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.
Last Edit: 3 months 3 days ago by dglp.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.142 seconds
Donation Image