Building relevant conditions in ODK Build - case of a programming null

Hi,

I promise I did spend time checking previous threads on the subject but I
am quite lost as I have no background in programming (and apparently no
gift for it either) and I didn't find detailed guidance enough that I could
make the simplest relevant condition to work (note that I understand the
principle behind the relevant condition).

I am putting together a survey where I will have a few questions and then 8
groups with questions. These 8 groups should only be shown if the response
to one of the first questions is either "none of the above"
(English)/"None" (Underlying value) or "Not sure" (English)/"Unknown"
(Underlying value). Within the groups too I will have some conditions to be
met within the group for most of the question. I attached an extract of my
file.

I would like/need to stay in ODK Build because the idea is to transfer the
survey to people who are like me (i.e., not programming savvy) who will be
able in the future to adapt it further.

Could someone help me with:

  1. building the path (I am not sure which of relative or absolute path is
    best. Is one of them better in terms of minimizing the work load when when
    revising the survey and/or transferring to other computers?)
  2. getting the syntax right?

I really, really appreciate any help.

Many thanks,

Florence

Groundtruthing-27NOv2016-ODK-export.xlsx (23.7 KB)

Hi Florence,

You should use /data/dataName to reference nodes and absolute
referencing is required.

Attached is an example of a form that shows an example of relevance.
It asks for a favorite color, then based on the answer, it shows a
different prompt.

In the attached example, favorite_color is the name of the select one
and /data/favorite_color = 'r' is what I use in the relevance for the
red branch.

Yaw

Favorite Color.odkbuild (1.21 KB)

··· On Sun, Nov 27, 2016 at 5:42 PM, Florence Landsberg wrote: > Hi, > > I promise I did spend time checking previous threads on the subject but I am > quite lost as I have no background in programming (and apparently no gift > for it either) and I didn't find detailed guidance enough that I could make > the simplest relevant condition to work (note that I understand the > principle behind the relevant condition). > > I am putting together a survey where I will have a few questions and then 8 > groups with questions. These 8 groups should only be shown if the response > to one of the first questions is either "none of the above" (English)/"None" > (Underlying value) or "Not sure" (English)/"Unknown" (Underlying value). > Within the groups too I will have some conditions to be met within the group > for most of the question. I attached an extract of my file. > > I would like/need to stay in ODK Build because the idea is to transfer the > survey to people who are like me (i.e., not programming savvy) who will be > able in the future to adapt it further. > > Could someone help me with: > 1) building the path (I am not sure which of relative or absolute path is > best. Is one of them better in terms of minimizing the work load when when > revising the survey and/or transferring to other computers?) > 2) getting the syntax right? > > I really, really appreciate any help. > > Many thanks, > > Florence > > -- > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "ODK Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to opendatakit+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.
1 Like