- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Simple array filter on array values of previous question
- basille
- Topic Author
- Offline
- New Member
Less
More
5 years 8 months ago #172544
by basille
Simple array filter on array values of previous question was created by basille
I have been trying for a few hours, but can't get to do exactly what I would like to do. I'm hoping that somebody from the community could answer this one.
On the first question, we have a list of products, and a frequency of use in an array:
In the second question, I would like to ask about rating each product that is used (in other words, products for which something else than "Never" has been checked, e.g. in this case only B and C):
I have tried many different solutions provided in the documentation or in this forum, using an 'Array filter', or 'Relevance equation' in different formats, to no avail…
I am still fairly new to LimeSurvey, with limited knowledge of how it works. A step-by-step explanation, or very simple example of what I am trying to achieve would be greatly appreciated.
Thanks in advance!
On the first question, we have a list of products, and a frequency of use in an array:
Never | Sometimes | Often | |
Product A | x | ||
Product B | x | ||
Product C | x |
In the second question, I would like to ask about rating each product that is used (in other words, products for which something else than "Never" has been checked, e.g. in this case only B and C):
Bad | OK | Good | Very good | |
Product B | ||||
Product C |
I have tried many different solutions provided in the documentation or in this forum, using an 'Array filter', or 'Relevance equation' in different formats, to no avail…
I am still fairly new to LimeSurvey, with limited knowledge of how it works. A step-by-step explanation, or very simple example of what I am trying to achieve would be greatly appreciated.
Thanks in advance!
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 8 months ago #172545
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Simple array filter on array values of previous question
What version of LimeSurvey do you use?
Can you export a surveyfile with your two questions and attach it here.
Can you export a surveyfile with your two questions and attach it here.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- basille
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
5 years 8 months ago #172547
by basille
Replied by basille on topic Simple array filter on array values of previous question
Sure thing!
LimeSurvey Version 3.6.1+180329
I have exported a test survey with only these two questions, and my "best" attempt at making the second one conditional on the first one… (unsuccessfully)
Thanks!
LimeSurvey Version 3.6.1+180329
I have exported a test survey with only these two questions, and my "best" attempt at making the second one conditional on the first one… (unsuccessfully)
Thanks!
Attachments:
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 8 months ago #172549
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Simple array filter on array values of previous question
The subquestion relevance for the second questions are
products_SQ001!="A1"
products_SQ002!="A1"
etc.
products_SQ001!="A1"
products_SQ002!="A1"
etc.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- basille
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
5 years 8 months ago #172550
by basille
Replied by basille on topic Simple array filter on array values of previous question
Arrrfff! So close, yet so far! I tried different variations of it, but did not think of adding quotes around the answer code… This works now beautifully, thanks jelo for your super quick help!
The topic has been locked.