Skipping logic: multiple conditions in ODK Build

Hi,

I know I can do elaborate relevance outside of ODK Build but to ensure this
will be picked up by my government partners I need to stay in the most user
friendly environment as possible.

Here is the structure of my ODK Build form (part of it, there are 60
questions, organized in 8 groups) and the relevant conditions (in colors
are clarifications, they are not part of the form in ODK Build).

*IncompatibleCurrentLULCToAll *(Q1)

No relevant condition

IncompatibleFutureLULCToAll (Q2)

/data/IncompatibleCurrentLULCToAll='None' or
/data/IncompatibleCurrentLULCToAll='Unknown' (this works)
RestoringSecondaryForest (Group 1)

((/data/IncompatibleCurrentLULCToAll=‘None’) or
(/data/IncompatibleCurrentLULCToAll=‘Unknown’)) and
((/data/IncompatibleFutureLULCToAll=‘None’) or
(/data/IncompatibleFutureLULCToAll=‘Unknown’)) (this does not work)

  • PotentialForestVegetation (Group 1, Q1)

No relevant condition

  • IncompatibleCurrentLULCToSecForest (Group 1, Q2)

/data/PotentialForestVegetation<>‘No’ (this does not work)

Also, I don't know if there is a maximum length to the relevance but the
longest relevant condition I have is 570 characters.

Thanks for any help!

Florence

Hi Florence,

I think for long-ish forms, XLSForms might work better. And the number
of people who build forms with it suggests that it's pretty
user-friendly. It might be worth it to give it a try at
http://xlsform.org.

As to the issues at hand, without seeing your entire form, it's hard to debug.

  1. Is valid syntax. is it possible you have a logical error? Try it
    step by step.

  2. <> is not valid syntax and I'm not sure what you are trying to
    accomplish. It should probably be =.

  3. The path to PotentialForestVegetation is
    /data/RestoringSecondaryForest/PotentialForestVegetation.

Yaw

··· On Wed, Nov 30, 2016 at 2:24 PM, Florence Landsberg wrote: > Hi, > > I know I can do elaborate relevance outside of ODK Build but to ensure this > will be picked up by my government partners I need to stay in the most user > friendly environment as possible. > > Here is the structure of my ODK Build form (part of it, there are 60 > questions, organized in 8 groups) and the relevant conditions (in colors are > clarifications, they are not part of the form in ODK Build). > > > > IncompatibleCurrentLULCToAll (Q1) > > No relevant condition > > > > IncompatibleFutureLULCToAll (Q2) > > /data/IncompatibleCurrentLULCToAll='None' or > /data/IncompatibleCurrentLULCToAll='Unknown' (this works) > > > > RestoringSecondaryForest (Group 1) > > ((/data/IncompatibleCurrentLULCToAll=‘None’) or > (/data/IncompatibleCurrentLULCToAll=‘Unknown’)) and > ((/data/IncompatibleFutureLULCToAll=‘None’) or > (/data/IncompatibleFutureLULCToAll=‘Unknown’)) (this does not work) > > - PotentialForestVegetation (Group 1, Q1) > > No relevant condition > > - IncompatibleCurrentLULCToSecForest (Group 1, Q2) > > /data/PotentialForestVegetation<>‘No’ (this does not work) > > > Also, I don't know if there is a maximum length to the relevance but the > longest relevant condition I have is 570 characters. > > Thanks for any help! > > 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.

Thanks Yaw, I did go to XLSForm and it is indeed super easy once you export
the skeleton of the survey from ODK Build to only write up the relevance
conditions.

Many thanks!

Florence

Hi Florence,

The thanks go to Clint for adding XLSForm export to Build a few weeks
back! He's the real MVP.

Yaw

··· On Mon, Dec 5, 2016 at 1:54 PM, Florence Landsberg wrote: > Thanks Yaw, I did go to XLSForm and it is indeed super easy once you export > the skeleton of the survey from ODK Build to only write up the relevance > conditions. > > 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.