- Posts: 1
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Build Matrix based on previous multiple choice question
- viking84
- Topic Author
- Offline
- New Member
Less
More
7 years 1 week ago #149733
by viking84
Build Matrix based on previous multiple choice question was created by viking84
Hi all,
I'm new to limesurvey and have been searching the forum quite a bit, but can't seem to find the correct option.
What I'm trying to do is ask a multiple choice question first, and then follow up with a 5-point matrix listing only the checked options from the multiple choice question.
e.g. multiple choice offers options 1-10, user has selected 1,3,4,9:
Matrix should list options 1,3,4,9 with a 1-5 rating.
How would I go about it, if possible at all?
Many thanks in advance!
I'm new to limesurvey and have been searching the forum quite a bit, but can't seem to find the correct option.
What I'm trying to do is ask a multiple choice question first, and then follow up with a 5-point matrix listing only the checked options from the multiple choice question.
e.g. multiple choice offers options 1-10, user has selected 1,3,4,9:
Matrix should list options 1,3,4,9 with a 1-5 rating.
How would I go about it, if possible at all?
Many thanks in advance!
The topic has been locked.
- Bielefeld
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 2
7 years 1 week ago - 7 years 1 week ago #149735
by Bielefeld
Version 2.63.1+170305
Replied by Bielefeld on topic Build Matrix based on previous multiple choice question
Hi,
This is possible (LS version = current) by using the nice
feature "Relevance equation" for the sub-questions
of your matrix with a little trick:
The depending item (here: your matrix) cannot be in
the same group with the question that restricts the item.
Reason: There is no dynamic reload of the sub-questions
depending on previous selection actions on the same page,
so there has to be one "Next"-button-click between these two.
Plus: You must use the default of one group per "page"
which enables the "Next"-button between groups/pages.
Since there is no "Set conditions"-button in the top menu
when editing sub-questions, you will need to understand the
syntax of these conditions first, e.g. by defining conditions
for a dummy non-sub-question and copying them over to your
actual sub-question relevance equation fields...
Cheers,
Stefan
This is possible (LS version = current) by using the nice
feature "Relevance equation" for the sub-questions
of your matrix with a little trick:
The depending item (here: your matrix) cannot be in
the same group with the question that restricts the item.
Reason: There is no dynamic reload of the sub-questions
depending on previous selection actions on the same page,
so there has to be one "Next"-button-click between these two.
Plus: You must use the default of one group per "page"
which enables the "Next"-button between groups/pages.
Since there is no "Set conditions"-button in the top menu
when editing sub-questions, you will need to understand the
syntax of these conditions first, e.g. by defining conditions
for a dummy non-sub-question and copying them over to your
actual sub-question relevance equation fields...
Cheers,
Stefan
Version 2.63.1+170305
Attachments:
Last edit: 7 years 1 week ago by Bielefeld. Reason: typo
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10613
- Thank you received: 3691
7 years 1 week ago #149736
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Build Matrix based on previous multiple choice question
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11746
- Thank you received: 2750
7 years 1 week ago #149777
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Build Matrix based on previous multiple choice question
While you can do it with the subquestion relevance like Bielefeld suggested, I would rather go with Tpartners suggestion "Array filter". If it is like you described it, this is the quickest solution. For Bielefelds solution you need to write a relevance equation for each option, which will be a lot more work than using the Array Filter, which is exactly made for the described scenario.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.