Welcome to the LimeSurvey Community Forum

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

Cascading Questions - Array Filter

  • christianlangkamp
  • christianlangkamp's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 8 months ago #204031 by christianlangkamp
Cascading Questions - Array Filter was created by christianlangkamp
I wish to do a survey on hobbies, and preferences for items within hobbies

Thus somebody might be interested in sailing, and within sailing dingy, yacht, lake sailing, Ocean sailing, Optimist, ...

Or Photography somebody might be interested into Portrait, Butterflies, Safari, Models, Architecture, ...


The main point is this is a major list. You probably have about 50 serious hobbies, with 3-10 subanswers possible per hobby. So I would as first question put in a pick 5 out of the 50, and then in the 2nd group would like to filter for the five given hobbies, and then ask for preferences on the subitems.

I would probably keep it simple, Coding it as X01, X02, ... and then code the responses as X01_01, X01_02, and putting these in also as answers until I find other items to include as time goes by.

But the main question is, how do I do the Piping / cascadation.

have 1 big question with 50 options in group one 50 different questions in Group and then 50 individual questions in Group 2, of which I hide 45 per logic ? I am aware that for this sort of questioning, there will be some pain involved in the coding, just wondering how much ...

Best wishes
Christian
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #204036 by Joffm
Replied by Joffm on topic Cascading Questions - Array Filter
So, first you want to select 5 out of the 50 main hobbies?
Then you want to select some subgroups of these 5 selected hobbies?

There are many ways to do.

1. 2 level multiple question (with some javascript)





2. The same without javascript (only subquestion relevance; the sub-hobbies are only displayed if the main hobby is selected)


3. The two question solution with subquestion relevance

Here you should insert headers between the main hobby groups.

Something you prefer?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #204041 by Joffm
Replied by Joffm on topic Cascading Questions - Array Filter
Here with the mentioned headers

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: christianlangkamp
The topic has been locked.
  • christianlangkamp
  • christianlangkamp's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 8 months ago #204045 by christianlangkamp
Replied by christianlangkamp on topic Cascading Questions - Array Filter
The second with header is perfect. First mark, and then if subquestions exist, mark the subquestions.

I don't like programming, A.) because I cannot do it, and B.) because it usually introduces more problems than it solves unless you really know what you are doing.


So I will try to replicate that tomorrow. Many thanks !
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose