Multiple Answer Question requiring a series of follow up questions for each answer selected

Hello -
I am collecting data on a persons family members (those that live with
them) which include age, ocupation, salary, health, etc. The way I am
currently setting it up is as a multiple answer question that starts with
"Select all the family members that live with you?"
Mom
Dad
Aunt
Uncle
Brother
Sister
Son
Daughter (etc)

The user will then select all that apply and then I want the application to
ask a series of follow up questions for each family member selected
including questions like:
How many live with you? (for example, if more than 1 aunt or uncle lives
with them)
How old is Aunt 1? Aunt 2? Aunt 3? etc
What is the occupation?
How much do they make?
etc.

What is the best way to set something like this up? I am trying to avoid
having to create a question tree for each member such as
Does you “Mom” (or dad, or other family member) live with you? Yes or No
What is “Mom” occupation?
How much does “Mom” make?
etc…

Any guidance would be appreciated!

Thanks!!

Hi, Keelyn,

If I understand your question appropriately, you have a set of questions
for each family member and you only want to display those questions when
the relevant family member is selected in the list, is that correct?

For multiple choice questions with multiple answer possibilities,
unfortunately, it is necessary to hand-write the logic, as described here:
https://help.commcarehq.org/display/commcarepublic/Common+Logic+and+Calculations#CommonLogicandCalculations-DisplayLogicforMultipleChoice(MultipleAnswers)

You could make a group for all the questions related to “mom” and then put
a display condition on the group that reads:
selected(/data/family_members_question, ‘mom’)

Hope this helps, let me know if I misunderstood.

Jeremy

··· On Tue, Jul 30, 2013 at 3:41 PM, Keelyn Henderson wrote:

Hello -
I am collecting data on a persons family members (those that live with
them) which include age, ocupation, salary, health, etc. The way I am
currently setting it up is as a multiple answer question that starts with
"Select all the family members that live with you?"
Mom
Dad
Aunt
Uncle
Brother
Sister
Son
Daughter (etc)

The user will then select all that apply and then I want the application
to ask a series of follow up questions for each family member selected
including questions like:
How many live with you? (for example, if more than 1 aunt or uncle lives
with them)
How old is Aunt 1? Aunt 2? Aunt 3? etc
What is the occupation?
How much do they make?
etc.

What is the best way to set something like this up? I am trying to avoid
having to create a question tree for each member such as
Does you “Mom” (or dad, or other family member) live with you? Yes or No
What is “Mom” occupation?
How much does “Mom” make?
etc…

Any guidance would be appreciated!

Thanks!!


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Jeremy Wacksman
Dimagi http://www.dimagi.com, Inc.

Keelyn,

If you are able to restructure things a tiny bit you can accomplish what
you want by creating all of the questions you’d like to ask inside of a
"Repeat Group" in the form designer. This will let you add each family
member to the form one by one, and then ask the same set of questions for
each person, without writing the tree structure for every possible
relationship. You can add a single select to the beginning of the Repeat
Group to ask what that person’s relationship is, and then control whether
some of the questions in the repeat group are displayed by referring to
that value.

-Clayton

··· On Tue, Jul 30, 2013 at 4:31 PM, Jeremy W. wrote:

Hi, Keelyn,

If I understand your question appropriately, you have a set of questions
for each family member and you only want to display those questions when
the relevant family member is selected in the list, is that correct?

For multiple choice questions with multiple answer possibilities,
unfortunately, it is necessary to hand-write the logic, as described here:
https://help.commcarehq.org/display/commcarepublic/Common+Logic+and+Calculations#CommonLogicandCalculations-DisplayLogicforMultipleChoice(MultipleAnswers)

You could make a group for all the questions related to “mom” and then put
a display condition on the group that reads:
selected(/data/family_members_question, ‘mom’)

Hope this helps, let me know if I misunderstood.

Jeremy

On Tue, Jul 30, 2013 at 3:41 PM, Keelyn Henderson keelynh@gmail.comwrote:

Hello -
I am collecting data on a persons family members (those that live with
them) which include age, ocupation, salary, health, etc. The way I am
currently setting it up is as a multiple answer question that starts with
"Select all the family members that live with you?"
Mom
Dad
Aunt
Uncle
Brother
Sister
Son
Daughter (etc)

The user will then select all that apply and then I want the application
to ask a series of follow up questions for each family member selected
including questions like:
How many live with you? (for example, if more than 1 aunt or uncle lives
with them)
How old is Aunt 1? Aunt 2? Aunt 3? etc
What is the occupation?
How much do they make?
etc.

What is the best way to set something like this up? I am trying to avoid
having to create a question tree for each member such as
Does you “Mom” (or dad, or other family member) live with you? Yes or No
What is “Mom” occupation?
How much does “Mom” make?
etc…

Any guidance would be appreciated!

Thanks!!


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Jeremy Wacksman
Dimagi http://www.dimagi.com, Inc.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks for the suggestions! Much appreciated!!!

··· On Tuesday, July 30, 2013 4:45:21 PM UTC-4, Clayton Sims wrote: > > Keelyn, > > If you are able to restructure things a tiny bit you can accomplish what > you want by creating all of the questions you'd like to ask inside of a > "Repeat Group" in the form designer. This will let you add each family > member to the form one by one, and then ask the same set of questions for > each person, without writing the tree structure for every possible > relationship. You can add a single select to the beginning of the Repeat > Group to ask what that person's relationship is, and then control whether > some of the questions in the repeat group are displayed by referring to > that value. > > -Clayton > > > On Tue, Jul 30, 2013 at 4:31 PM, Jeremy W. <jwac...@dimagi.com wrote: > >> Hi, Keelyn, >> >> If I understand your question appropriately, you have a set of questions >> for each family member and you only want to display those questions when >> the relevant family member is selected in the list, is that correct? >> >> For multiple choice questions with multiple answer possibilities, >> unfortunately, it is necessary to hand-write the logic, as described here: >> https://help.commcarehq.org/display/commcarepublic/Common+Logic+and+Calculations#CommonLogicandCalculations-DisplayLogicforMultipleChoice(MultipleAnswers) >> >> You could make a group for all the questions related to "mom" and then >> put a display condition on the group that reads: >> selected(/data/family_members_question, 'mom') >> >> Hope this helps, let me know if I misunderstood. >> >> Jeremy >> >> >> On Tue, Jul 30, 2013 at 3:41 PM, Keelyn Henderson <kee...@gmail.com wrote: >> >>> Hello - >>> I am collecting data on a persons family members (those that live with >>> them) which include age, ocupation, salary, health, etc. The way I am >>> currently setting it up is as a multiple answer question that starts with >>> "Select all the family members that live with you?" >>> Mom >>> Dad >>> Aunt >>> Uncle >>> Brother >>> Sister >>> Son >>> Daughter (etc) >>> >>> The user will then select all that apply and then I want the application >>> to ask a series of follow up questions for each family member selected >>> including questions like: >>> How many live with you? (for example, if more than 1 aunt or uncle lives >>> with them) >>> How old is Aunt 1? Aunt 2? Aunt 3? etc >>> What is the occupation? >>> How much do they make? >>> etc. >>> >>> What is the best way to set something like this up? I am trying to >>> avoid having to create a question tree for each member such as >>> Does you "Mom" (or dad, or other family member) live with you? Yes or No >>> What is "Mom" occupation? >>> How much does "Mom" make? >>> etc... >>> >>> Any guidance would be appreciated! >>> >>> Thanks!! >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "commcare-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to commcare-user...@googlegroups.com . >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> >> >> -- >> Jeremy Wacksman >> Dimagi , Inc. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "commcare-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-user...@googlegroups.com . >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > >