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
  • basille's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #172544 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:
NeverSometimesOften
Product Ax
Product Bx
Product Cx

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):
BadOKGoodVery 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.
More
5 years 8 months ago #172545 by jelo
What version of LimeSurvey do you use?
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
  • basille's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #172547 by basille
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!

File Attachment:

File Name: limesurvey...3418.lss
File Size:22 KB
The topic has been locked.
More
5 years 8 months ago #172549 by jelo
The subquestion relevance for the second questions are
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
  • basille's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #172550 by basille
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.

Lime-years ahead

Online-surveys for every purse and purpose