Welcome to the LimeSurvey Community Forum

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

Cascading Array Filters

  • RitaShen
  • RitaShen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 4 months ago #144973 by RitaShen
Cascading Array Filters was created by RitaShen
Hi there,
We have Cascading Array Filters this function
But this one is using in the Multiple Choose Question

Does anyone try to design the question like:

What is your first preference?
Preference A
Preference B
Preference C
Preference D
Preference E
Preference F

Second preference is…?
Preference B
Preference C
Preference D
Preference E
Preference F


the first question you choose PreferenceA, the second question's answer won't appear the PreferenceA this options.
I have no idea how to setting the conditions.

Does anyone have an idea what the problem is and how to solve it?
Any help is much appreciated!

*I'm use the version 2.5
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 4 months ago - 7 years 4 months ago #144986 by Joffm
Replied by Joffm on topic Cascading Array Filters
Hi, Rita,
well, you noticed that the "Array filter exclusion" doesn't work with single punch questions.
To have a solution "out of the box": Create your questions as "multiple" with "Maximum answers"=1.
Then enter in the following question the "Array filter exclusion".
Example:
Q1. What is your first preference?
Q2. Second preference is…? "Array filter exclusion": Q1.
Q3. Third preference is…? "Array filter exclusion": Q2.

Well, not the best, but working.
With EM you can transfer the multiple result to a single punch in a hidden equation, like "if Q1_SQ001=="Y", Q1single=1", "if Q1_SQ005=="Y", Q1single=5", ...

Otherwise I think somebody has to provide a javascript snippet.

The other solution is to display the question as "ranking".
Set "Minimum answers" and "Maximum answers" e.g. to 2. and the rest is done by LS.
The respondents gets an error message if he tries to rank less or more.

see sreenshots (though the text is German)

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 4 months ago by Joffm. Reason: Typo
The following user(s) said Thank You: RitaShen
The topic has been locked.
  • RitaShen
  • RitaShen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 4 months ago #145032 by RitaShen
Replied by RitaShen on topic Cascading Array Filters
thanks a lot

the first method is what I want like the card sorting.

it's really helpful
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 4 months ago #145043 by tpartner
Replied by tpartner on topic Cascading Array Filters
I would say it sounds more like a pure ranking. Card sorting allows you to allocate several items to various positions.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose