Populating multiple choice questions with dynamic values - Trouble with choice filter

calculations
#1

Hi all,

Interesting one for you here.

I’m trying to design a survey with an initial repeat group where the respondent lists the name, age, and gender of all their family members.

I want these names to populate several multiple choice questions later on in the survey.

To do this, I use 20 “dummy” names that get populated by the choices entered in the first repeat. I use an indexed-repeat to pull the data. This works fine, however it means that at each multiple choice there are several “blank” choices which is unacceptable.

My next step was to use a choice filter to narrow the list down to a number of choices that correspond to the number of repeats, or family members, using calculate position. For some reason, when I implement the choice filter, the labels of the choices suddenly disappear.

It’s driving me insane trying to understand why this happens. Funny thing is, I swear I have done this process in the past successfully!

Here is my form

Any help would be much appreciated!

#2

Hi
Do you have the form that you have so far created? Do you have the form that worked previously? Share either of these forms and it will make it easy for someone to fully assess
Stephane

#3

Hi Stephane,

Thank you for replying. I wasn’t able to upload the form (too new!) so I hyperlinked to a google sheet (you can see it above).

Best,
Steve

#4

Hi
My first look at it, i would recommend that you add a relevant section for each of the pname1 to 20. You can use
for pname1 use ${hhsize}>0 ,
for pname2 use ${hhsize}>1 etc

Try this and it should sort the issue of the blank

Regards
Stephane