"nested" groups?

147 views
Skip to first unread message

Edwin Adkins

unread,
Nov 7, 2011, 9:54:35 AM11/7/11
to xls2...@googlegroups.com
Hi,

I am trying to create groups within groups, with "nested" conditions.  the reason I want to do it this way is so that the bind:relevant can be applied to the group, or sub-groups, rather than having to be repeated with each individual question.

My guess is that it relates to the begin group and end group instructions.  can these be specified by name of group, so that you can begin one group, then begin another sub group, then close this, then begin another sub-group, then close this, and then finally end the original group, using group names?

edwin


to give an example:

begin group of questions on hospital
Q1: is this hospital operating now (A: select yes or no)

begin SUB group of questions on HIV medication at this hospital
Q2: if yes in Q1, do you provide HIV medication? (A: select yes or no)
Q3: if yes on Q2:  did you run out last  week? (A: select y or no)
end SUB group on HIV meds

begin SUB group on TB meds
Q4 & Q5: same as Q2 and Q3, but on TB meds
end SUB group on TB meds

many more groups...

end group on Hospitals

Andrew Marder

unread,
Nov 7, 2011, 10:12:19 AM11/7/11
to xls2...@googlegroups.com
Hi Edwin,

I've updated the documentation to answer this question here:

http://formhub.org/syntax/#nesting-groups-of-questions

Let me know if I can clarify further,

Andrew

Reply all
Reply to author
Forward
0 new messages