Page 1 of 1

Endlvel in two level questionnair

Posted: January 20th, 2019, 9:05 am
by mjbugalhao
I have a two level questionnaire: one household and several individuals per questionnaire.
I placed a last question (on the individual questionnaire) that should enable the interviewer to finish the current case. Something like this:
If ANOTHER_INDIVIDUAL = 9 then
endlevel;
endif;
When I choose ā€œ9ā€ Iā€™m presented with a message that asks me whether I want to finish the current case. I press Ok and it jumps right to the point where the ID of the next Individual should be entered witch is not the purpose.
What am I doing wrong?

Re: Endlvel in two level questionnair

Posted: January 21st, 2019, 8:03 am
by josh
In a two level application endlevel ends the current level. So if you are in a level 2 field (in the individual level) then endlevel will take you to the postproc for that level and then start the node at that same level which will be the next individual. If you want to end the questionnaire itself, you need to add and endlevel in a proc in the first level.

Re: Endlvel in two level questionnair

Posted: January 23rd, 2019, 4:07 am
by mjbugalhao
Hi Josh,

I am sure that your reply is 100% correct and I thank you for answering my question but I fail to see how should I apply your suggestion.
How can I make it go back to the household level where, according to your suggestion, should I place the endlevel statement?

Regards

Re: Endlvel in two level questionnair

Posted: January 23rd, 2019, 5:39 am
by Gregory Martin
If you want to end your questionnaire, you should put an endlevel in the preproc of your second level. That will end the entire questionnaire.

Re: Endlvel in two level questionnair

Posted: January 26th, 2019, 10:54 am
by mjbugalhao
Thanks, I'll give it a try.