Welcome to the LimeSurvey Community Forum

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

Array filter - 'none' option

  • pkolodz
  • pkolodz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #135637 by pkolodz
Array filter - 'none' option was created by pkolodz
Hi!
I'm looking for a solution to get sth like on example:
Q1: What brands have you heard about?
AAA [x]
BBB
CCC [x]
None

q2 What brands have you used...?
AAA
CCC
None

Q2 is filtered by answers given in Q1, but I'd like to see option 'none' in both questions. When I simply add Q1 in array filter for Q2, and respondent will choose AAA, then I canlt see 'none' response in Q2 while it should be visible regardless Q1 selection.
How to overwrite array filter just for one response?

Regards,
Piotr
The topic has been locked.
More
8 years 6 months ago - 8 years 6 months ago #135643 by coeneisma
Replied by coeneisma on topic Array filter - 'none' option
I would use the subquestion relevance. A little bit more work, but a lot more flexible.

Last edit: 8 years 6 months ago by coeneisma.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
8 years 6 months ago #135677 by DenisChenu
Replied by DenisChenu on topic Array filter - 'none' option
With array filter : use 2 different code for none
It work without issue.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: coeneisma
The topic has been locked.
  • pkolodz
  • pkolodz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #135682 by pkolodz
Replied by pkolodz on topic Array filter - 'none' option
Thanks for suggestions.
Regarding relevance - so I should switch off filtering in advanced options section, and apply relevance expression to particular response yes?

Dennis, I tried with separate codes, but I'd like also use exclude options for this response. And I got a problem that when sb select none in Q1 then in Q2 I saw two 'none' options.
The best solution would be to hide Q2 when Q1 is 'none'. Is there any option for that?
Piotr
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
8 years 6 months ago #135699 by DenisChenu
Replied by DenisChenu on topic Array filter - 'none' option
1: you dont need thé 2 none un 2nd question
2: see conditions

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • pkolodz
  • pkolodz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #135765 by pkolodz
Replied by pkolodz on topic Array filter - 'none' option
Sorry Denis, I don't get it.
I know how to filter whole question. I have a problem with 'none' response.
With array filter on Q2 =(Q1), and both questions shares the same response list with response 9 - 'none' :
If q1= 1;2;3;4 - Q2 has 1;2;3;4 - options active. But I want to have also '9(none)' response active in Q2, even if it wasn't selected in Q1.
The idea is that even if respondent heard about the brands, he/she can still don't use it ever.

BTW: it works 'quite' fine when I put sth strange in Q2:9 relevance line ("bla"). In this case I get an error in survey logic file, but 'non' option behave like I want. However, I'm afraid that this solution will generate some trouble later on.

So my question is how to it in the best way?
Regards,
Piotr
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
8 years 6 months ago #135775 by DenisChenu
Replied by DenisChenu on topic Array filter - 'none' option

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • pkolodz
  • pkolodz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #135780 by pkolodz
Replied by pkolodz on topic Array filter - 'none' option
Now I got it!
Thanks Denis!

Piotr
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose