I have essentially three questions for a hypothetical Child Care provider, that I would like to add to an existing survey. They are:
- Have you ever closed a classroom?
- If so, how many have you closed?
- Could you please provide additional details on your closed classrooms
I would like to set up the logic so the user is not unnecessarily bothered with detail questions if closed classrooms does not apply to them.
I know how to set up a similar stream of questioning using the array filter feature, with a Yes/No as No. 1, a Multiple short text as No. 2, and finally an Array (Numbers) for No. 3. I have also found multiple examples of sub-question relevance using
.multiple-opt
, and
.ranking
. However, I cannot seem to find any examples of a drop-down being used to hide/reveal a series of sub-questions.
The closest I've been able to come is to use javascript onload feature to hide certain sub-questions, but that only works when the user clicks to the next page of the survey. Unfortunately I'm limited to keeping all the questions under one group. I've tried to adapt the theory, but no luck. It seems crazy to me that this has not already been explored, and I would be happy to adapt someone else's solution, but I just can't find it.
I've attached a development copy of my survey, and each group represents a different tactic, all of which have fallen short. Group 3 gets it really close, but the filter array appears to be all or nothing and I can't get it to hide/reveal selected sub-questions. I've been on this issue for days now, and I think its time to ask for help from the experts.
Can this be done?
[EDIT1: added file]