Using multiple relevant values

Hi

I am creating quite a complex wildlife hunting form and I am using the
relevant column and the parameter of selected(${species-1-y-n}, 'yes') to
only show relevant questions based on previous answers

Its a great feature but I want to use two of them together and cant see how
to do it. The reason is I am asking a yes/no question to see if species are
getting scarcer and then showing different sets of questions based on the
answer. But then I have a further question down one of these question paths
that I want to as for first, second and third species with a second yes no
value between that I will be using to only show related questions if a
second or third species has been entered.

So will need to use two values together and no matter how I try I get an
error in conversion eg

selected(${scarce-species-y-n}, 'yes') selected(${species-1-y-n}, 'yes')

selected(${scarce-species-y-n}, 'yes')(${species-1-y-n}, 'yes')
selected(${scarce-species-y-n}, 'yes' ${species-1-y-n}, 'yes')

Any ideas on how to use two of these values together - or a better way of
allowing people to select their top 5 most scarce species but then
identifying how many have been entered so further questions can be asked
about just the ones entered.

Help appreciated

Jon

You can use 'and' and 'or' to connect conditions, for example,

( selected(${scarce-species-y-n}, 'yes') and
selected(${species-1-y-n}, 'yes') )

These can be nested using parentheses to ensure order or evaluation.

··· On Sat, Dec 15, 2012 at 2:57 AM, Jon Parsons wrote: > Any ideas on how to use two of these values together - or a better way of > allowing people to select their top 5 most scarce species but then > identifying how many have been entered so further questions can be asked > about just the ones entered.

This page http://opendatakit.org/help/form-design/binding/
covers the expression syntax and the functions that are available.

··· On Sat, Dec 15, 2012 at 11:29 AM, Gaetano Borriello < gaetano@cs.washington.edu> wrote:

You can use 'and' and 'or' to connect conditions, for example,

( selected(${scarce-species-y-n}, 'yes') and
selected(${species-1-y-n}, 'yes') )

These can be nested using parentheses to ensure order or evaluation.

On Sat, Dec 15, 2012 at 2:57 AM, Jon Parsons j.parsons@globalcanopy.org wrote:

Any ideas on how to use two of these values together - or a better way of
allowing people to select their top 5 most scarce species but then
identifying how many have been entered so further questions can be asked
about just the ones entered.

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Great.
This is usefull to:
*Call a group for diferent conditions.
*Compact a selections of diferentes variable.

select_multiple: ( selected (${variable},'estado') or selected (${variable},'limpieza'))
select_one: (${variable}='estado' or ${prueba}='OK').

Thanks :slight_smile:.