I'm trying to access a specific variable nested in a repeated group. This
is because a subsequent series of questions that come later that could be
asked or not - depend on the value range that this variable holds.
Unfortunately, I don't know how to condition this to check for the value or
even where. I cannot point to a specific index in the repeated group as I
don't know which holds the value range I seek.
I'll exemplify. A repeated group holds a sequence of questions regarding
enrolled school children in a class room. Every replicated group represents
a separate child.
Among these questions, there's one that asks for the child's age.
Further on in the survey, I have a group of questions that only apply to
children if they were below 12 years of age.
···
On Thursday, September 4, 2014 1:19:34 PM UTC+5, Ramadhan Ali Swalleh wrote:
>
> Hi everyone,
>
> I'm trying to access a specific variable nested in a repeated group. This
> is because a subsequent series of questions that come later that could be
> asked or not - depend on the value range that this variable holds.
> Unfortunately, I don't know how to condition this to check for the value
> or even where. I cannot point to a specific index in the repeated group as
> I don't know which holds the value range I seek.
> I'll exemplify. A repeated group holds a sequence of questions regarding
> enrolled school children in a class room. Every replicated group represents
> a separate child.
> Among these questions, there's one that asks for the child's age.
>
> Further on in the survey, I have a group of questions that only apply to
> children if they were below 12 years of age.
>
> How would I condition this group to execute?
>
> Your assistance will greatly be appreciated!
>
> Kind regards,
> Ramadhan Swalleh
>
···
Le jeudi 4 septembre 2014 08:19:34 UTC, Ramadhan Ali Swalleh a écrit :
>
> Hi everyone,
>
> I'm trying to access a specific variable nested in a repeated group. This
> is because a subsequent series of questions that come later that could be
> asked or not - depend on the value range that this variable holds.
> Unfortunately, I don't know how to condition this to check for the value
> or even where. I cannot point to a specific index in the repeated group as
> I don't know which holds the value range I seek.
> I'll exemplify. A repeated group holds a sequence of questions regarding
> enrolled school children in a class room. Every replicated group represents
> a separate child.
> Among these questions, there's one that asks for the child's age.
>
> Further on in the survey, I have a group of questions that only apply to
> children if they were below 12 years of age.
>
> How would I condition this group to execute?
>
> Your assistance will greatly be appreciated!
>
> Kind regards,
> Ramadhan Swalleh
>
Thank you so much for the reference and your quick response!
The thread describes accessing values in a static arrays well.
However, I need the survey to automatically know if a certain group in a
repeat loop has a variable value that falls in a specific range - then
apply this condition to determine whether to execute a subsequent group of
questions. I also have no way of knowing the number of repeats in my group
so defining an upper limit is not possible.
Is what I'm asking for possible?
Please let me know?
Your assistance is greatly appreciated.
On Thursday, September 4, 2014 1:19:34 PM UTC+5, Ramadhan Ali Swalleh wrote:
Hi everyone,
I'm trying to access a specific variable nested in a repeated group. This
is because a subsequent series of questions that come later that could be
asked or not - depend on the value range that this variable holds.
Unfortunately, I don't know how to condition this to check for the value
or even where. I cannot point to a specific index in the repeated group as
I don't know which holds the value range I seek.
I'll exemplify. A repeated group holds a sequence of questions regarding
enrolled school children in a class room. Every replicated group represents
a separate child.
Among these questions, there's one that asks for the child's age.
Further on in the survey, I have a group of questions that only apply to
children if they were below 12 years of age.
···
Le vendredi 5 septembre 2014 07:47:38 UTC, Ayub a écrit :
>
> Koassi,
>
>
>
> I have attached the form (.xls) that was at the end of the URL you
> attached, can we delete the blank options in that? please see above screen
> shot.
>
> Regards,
> Ayub
>
I haven't looked closely, but you might be able to default those
values to Invalid or something like that and prevent the user from
proceeding if they have selected an invalid spouse.
Yaw
···
--
Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.