Conditional setting based on set of questions

More
1 week 3 days ago #169603 by jimdavies
jimdavies created the topic: Conditional setting based on set of questions
I have a question I need to ask if someone answered 'Disagree' to either of the previous two questions but when I add the condition for the second question it goes on an AND condition instead of an OR.
Screen shot of the conditions attached
Attachments:

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #169607 by holch
holch replied the topic: Conditional setting based on set of questions
Which version of LS?
Can you attach a little test survey, with only the relevant questions included (.lss file)?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #169609 by jimdavies
jimdavies replied the topic: Conditional setting based on set of questions
LSS attached.
Sorry, I'm not sure where to see the version of LS I'm using.
Attachments:

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #169631 by tpartner
tpartner replied the topic: Conditional setting based on set of questions
You can use scenarios in the conditions designer to insert an OR.

Having said that, it is far easier to use a relevance equation:

Q1 == '1' OR Q1 == '2' OR Q1 == '3' OR Q2 == '1' OR Q2 == '2' OR Q2 == '3'

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #169640 by holch
holch replied the topic: Conditional setting based on set of questions

Sorry, I'm not sure where to see the version of LS I'm using.

For future reference, you can find the Limesurvey in the bottom right corner of the admin pages.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #169656 by jimdavies
jimdavies replied the topic: Conditional setting based on set of questions
Thanks holch. I'm on version Version 2.50+ Build 160810.

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #169657 by jimdavies
jimdavies replied the topic: Conditional setting based on set of questions
Could you provide more detail? I don't see where I can change it from an AND to an OR condition.
Attachments:

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago - 1 week 3 days ago #169658 by jimdavies
jimdavies replied the topic: Conditional setting based on set of questions
I added the relevance question but now question 3 never displays. Attachment shows what I did
Attachments:
Last Edit: 1 week 3 days ago by jimdavies. Reason: Updated attachment

Please Log in or Create an account to join the conversation.

More
1 week 2 days ago - 1 week 2 days ago #169684 by tpartner
tpartner replied the topic: Conditional setting based on set of questions
That is not supposed to be in the conditions designer. Delete all conditions for the question there and insert the equation in the Relevance field when editing the question.

Maybe the manual would help.

- manual.limesurvey.org/Questions_-_introd...n#Field_descriptions

- manual.limesurvey.org/Expression_Manager...tion-Level_Relevance

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 1 week 2 days ago by tpartner.

Please Log in or Create an account to join the conversation.

More
1 week 1 hour ago #169739 by jimdavies
jimdavies replied the topic: Conditional setting based on set of questions
Thanks, I was able to get it to work. I appreciate your help and patience!

Please Log in or Create an account to join the conversation.

More
5 days 19 hours ago - 5 days 19 hours ago #169817 by jimdavies
jimdavies replied the topic: Conditional setting based on set of questions
Is there a way to set the condition on questions set up in an array? I followed the same logic and it's not working. Screen shots show the question and answer codes and the error I receive
Attachments:
Last Edit: 5 days 19 hours ago by jimdavies.

Please Log in or Create an account to join the conversation.

More
5 days 19 hours ago #169818 by holch
holch replied the topic: Conditional setting based on set of questions
You can, but you are referencing the subquestions wrong.

You need to tell Limesurvey which question you are referring to and which subquestion you are referring to. AS So what is the question code of this array question? Because Q12-Q16 seem to be the subquestion codes.

So to reference the subquestions you need to go like this QUESTIONCODE_SUBQUESTIONCODE. If you would use numbers for the answer codes you could shorten your equation quite a bit by use >, < and = to define everything in one.

Lets assume you want to reference the subquestion Q12, lets assume the question code of the whole question is QC and the answer options are 1-5 and you only want 1-3 go further.

Then you could write something like this:
QC_Q12 < 4
If you put this into the long free text question as relevance equation, the question would open if the respondent answere 1, 2 or 3 in subquestion Q12 of question QC.

If you really want to stick to your current answer codes it will be more or less the same, you just will have to have a longer relevance equation.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!