Nested questionnaires

More
1 week 3 days ago #183201 by cmhhansen
Is it possible to have nested questionnaires? For example, running a household survey I might have a single household questionnaire which lists all individuals found, among other things. Then, a personal form would be created for each eligible individual enumerated in the dwelling form, with some information provided in the dwelling form pre-entered... or at least not re-asked if already present in the dwelling form.

I'm not entirely convinced this is a good way to run a collection, but we do this with our existing tool, so any alternative we consider might need to have this functionality.


Cheers

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 week 3 days ago #183202 by Joffm
Replied by Joffm on topic Nested questionnaires
As far as I understand, this is not a nested questionnaire - you do not return to the general household questionnaire, but a 1:n relation.
Well, depends a bit of the amount of questions and the maximum amount of individuals.
First:
LS doesn't support loops, so the easiest way is to create as many of the individual questionnaire as groups as the maximum expected number of individuals.
Then you can display these groups be relevance.
If there is a lot of questions like arrays or multiple questions, you might get in trouble because of the length limit of MySQL.

Second:
Create a master questionnaire for the household and ar the end link to a child questionnaire.
This child questinnaires asks for one individual and at the end links to itself to ask for the next.
You just have to pass the needed parameters to be able to merge the data (best by {SAVEDID}) and to stop the child questionnaire.

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in or Create an account to join the conversation.

More
1 week 2 days ago #183252 by DenisChenu
Replied by DenisChenu on topic Nested questionnaires

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 week 2 days ago #183256 by jelo
Replied by jelo on topic Nested questionnaires

cmhhansen wrote: but we do this with our existing tool, so any alternative we consider might need to have this functionality.

What tool is used currently?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!