Use previous anwers to text questions to add questions at a later stage, but not as multiple choice

Hi all,
I’m quite new to XLSForm, but despite some research I have not found any solution to this problem.

We want to conduct a household survey asking people where they buy different food groups (fruits, vegetables, bread, cans, etc.). We allow for two possible answers (purchase places) for each food groups.

First we ask households if the buy food groups (11 groups available).

Q1. Do you buy food group (1-11)? SELECT MULTIPLE

In a second step, we identify 2 possible purchase places for each food group selected in Q1. We managed to solve this through a repeat.

begin repeat
Q2. At what type of purchase place do you buy food group 1? SELECT MULTIPLE (type of purchase places are supermarkets, grocery stores, markets, etc.)
Q2.1 Purchase place 1 (String)
Q3. At what other type of purchase place do you buy food group 1? SELECT MULTIPLE (type of purchase places are supermarkets, grocery stores, markets, etc.)
Q3.1 Purchase place 2 (String)
end repeat

The repeat registers perfectly all the purchase places indicated by the households in all the food groups selected in Q1.

We then calculate via indexed-repeat() the names of all the mentioned purchase places into calculate fields. So far, so good. What we have not resolved is how to ask a few more questions about each of the mentioned places (without repeating themselves!).

We had a look at different solutions and the one that seems to be most relevant (Roster-Choice2), does not work once deployed in Kobo.

Has somebody any ideas?

Thank you very much in advance!

Patric

We narrowed the options down to two possibilities.

  1. We could introduce an if condition in the calculation, saying that it should leave the field empty if there is already a place with the same name (actually we have already codified the purchase places, so no major risk there).
  2. We have to find a way to introduce a Relevant so that the additional questions will not be asked twice.

Any thoughts how to syntax this?

···

On Tuesday, August 8, 2017 at 11:36:17 AM UTC-5, Patric Hollenstein wrote:

Hi all,
I’m quite new to XLSForm, but despite some research I have not found any solution to this problem.

We want to conduct a household survey asking people where they buy different food groups (fruits, vegetables, bread, cans, etc.). We allow for two possible answers (purchase places) for each food groups.

First we ask households if the buy food groups (11 groups available).

Q1. Do you buy food group (1-11)? SELECT MULTIPLE

In a second step, we identify 2 possible purchase places for each food group selected in Q1. We managed to solve this through a repeat.

begin repeat
Q2. At what type of purchase place do you buy food group 1? SELECT MULTIPLE (type of purchase places are supermarkets, grocery stores, markets, etc.)
Q2.1 Purchase place 1 (String)
Q3. At what other type of purchase place do you buy food group 1? SELECT MULTIPLE (type of purchase places are supermarkets, grocery stores, markets, etc.)
Q3.1 Purchase place 2 (String)
end repeat

The repeat registers perfectly all the purchase places indicated by the households in all the food groups selected in Q1.

We then calculate via indexed-repeat() the names of all the mentioned purchase places into calculate fields. So far, so good. What we have not resolved is how to ask a few more questions about each of the mentioned places (without repeating themselves!).

We had a look at different solutions and the one that seems to be most relevant (Roster-Choice2), does not work once deployed in Kobo.

Has somebody any ideas?

Thank you very much in advance!

Patric