Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Conditional branching; rapid prototyping

More
9 years 7 months ago - 9 years 7 months ago #111185 by dglp
Hi all,

Just trying to get my head round some aspects of survey design.
I have two questions - one about conditional branching, and the other about ways of rapid prototyping.

My branching question is based on having a series of questions whose response goes mainly to two separate follow-on pages.

I've got a list of 18 topics that have two or more options - where two of the options in every question go to either a description form or a subscription form.

I reckon the efficient thing is to use conditional logic to skip intervening questions, but am having a Dickens of a time getting it to work!
My impression is that the expression manager only allows the ANDing of separate questions - which doesn't suit!
So I am looking for tips as to the best approach.


My second question is about how to create test versions without having to go through the GUI. I'd be really happy if I could rough out a survey in spreadsheet format then upload it.

I have half a mind to take an LSS file and use copy & paste of chunks to build additional sections.
I haven't tried it yet, and am just wondering if there are fundamental obstacles to doing prototyping that way. And if so, are there other techniques that do work? :woohoo:
Attachments:
Last edit: 9 years 7 months ago by dglp. Reason: typo
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 7 months ago - 9 years 7 months ago #111189 by tpartner
Replied by tpartner on topic Conditional branching; rapid prototyping

My impression is that the Expression Manager only allows the ANDing of separate questions

Why do you say that? You can definitely use OR statements in relevance equations.

My second question is about how to create test versions without having to go through the GUI.

Have a look at "Excel Survey Structure" (not sure how well that has been maintained) - manual.limesurvey.org/Excel_Survey_Structure


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 9 years 7 months ago by tpartner.
The following user(s) said Thank You: dglp
The topic has been locked.
More
9 years 7 months ago #111190 by dglp
Replied by dglp on topic Conditional branching; rapid prototyping
Thank you Tony,

I will be able answer your question about conditional branching in a bit more detail later when I've got more time.
For now, I'm answering the question with a question, as shown here.




While the description of complex conditions in the manual seems to say that it's possible to OR certain kinds of questions, it also says that certain other conditions can only be ANDed.

So I either need to find out how to set up questions in a way that allows me to OR each subquestion in a multiple choice question with EVERY other similar subquestion in every other question.

As a Boolean kind of phrase, I'm looking for D = (T1.Q1.SQ1 OR T1.Q2.SQ1 OR T1.Q3.SQ1 OR ... T1.Q99.SQ1) where Tn is a Group, Qn is a question and SQn is a particular subquestion that repeats from one question to the next within the group. D is a longtext form.

So I want to skip immediately to D if I select Option 1 in ANY of the n Questions in Group 1.
At present, sometimes it just carries on to the next Question.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 7 months ago #111191 by tpartner
Replied by tpartner on topic Conditional branching; rapid prototyping
I would use Expression Manager relevance instead of the conditions designer - manual.limesurvey.org/Expression_Manager...ation.2FBranching.29


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: dglp
The topic has been locked.
More
9 years 7 months ago #111199 by dglp
Replied by dglp on topic Conditional branching; rapid prototyping
Eek!
I thought Expression Manager and Conditions Designer were two names for the same thing.
Have been reading about one and trying to work with the other.

Time to do a bunch more reading then...
The topic has been locked.
  • c_schmitz
  • c_schmitz's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
9 years 7 months ago #111200 by c_schmitz
Replied by c_schmitz on topic Conditional branching; rapid prototyping
To make it an 'OR' use a scenario.

Best regards

Carsten Schmitz
LimeSurvey project leader
The following user(s) said Thank You: dglp
The topic has been locked.
More
9 years 7 months ago #111239 by dglp
Replied by dglp on topic Conditional branching; rapid prototyping
I need an emoticon for 'exploding brain'. :pinch:

Not used to working with variables, nor with the EM syntax.

But, starting with syntax, is there a key somewhere that explains &&, == and so on?
So I can figure out the meaning of statements like cohabs>1 && p1_rel != "".
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 7 months ago #111256 by tpartner
Replied by tpartner on topic Conditional branching; rapid prototyping

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: dglp
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 7 months ago #111278 by DenisChenu
Replied by DenisChenu on topic Conditional branching; rapid prototyping

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: dglp
The topic has been locked.
More
9 years 7 months ago #111298 by dglp
Replied by dglp on topic Conditional branching; rapid prototyping
Very good!

With all there is to absorb re Expression Manager, I reckon I'll be lucky to come back with any followup questions in less than a month...
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 7 months ago #111311 by DenisChenu
Replied by DenisChenu on topic Conditional branching; rapid prototyping
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 service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: dglp
The topic has been locked.
More
9 years 6 months ago - 9 years 6 months ago #111834 by dglp
Replied by dglp on topic Conditional branching; rapid prototyping
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: 9 years 6 months ago by dglp.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose