Relevant Skip Logic Help

Hi All,

I've got myself a little confused over how I can use relevant within
XLSForms and it may be what I'm trying to do is not possible.

I'm trying to implement skip logic that is based on 2 previously select
variables, if you look at the attached example, when I use
the http://opendatakit.org/use/xlsform/ to convert ready for testing I
receive an error:

Error: There has been a problem trying to replace ${districts} with the
XPath to the survey element named 'districts'. There is no survey element
with this name.

This is because of the relevant I've used on row 60, i can't find any
example of multi-relevant so maybe it's just my syntax - i hope it's
something quick and simple.

cheers
dan

errorexample.xls (39 KB)

Dan,

Not sure if this is the problem, but you have:

selected(${q2012year}, 'yes') and select(${districts}, 'nyanga'

That's missing a closing ) at the end, which might be confusing things.

Best,

Chris

··· On Thu, Jan 10, 2013 at 11:42 AM, Daniel Probert wrote:

Hi All,

I've got myself a little confused over how I can use relevant within
XLSForms and it may be what I'm trying to do is not possible.

I'm trying to implement skip logic that is based on 2 previously select
variables, if you look at the attached example, when I use the
http://opendatakit.org/use/xlsform/ to convert ready for testing I
receive an error:

Error: There has been a problem trying to replace ${districts} with the
XPath to the survey element named 'districts'. There is no survey element
with this name.

This is because of the relevant I've used on row 60, i can't find any
example of multi-relevant so maybe it's just my syntax - i hope it's
something quick and simple.

cheers
dan

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

good spot i think i just worked it out i needed to use district instead of
districts now it will process and seems to be working correctly..

··· On Thursday, January 10, 2013 9:55:08 AM UTC, Christopher Robert wrote: > > Dan, > > Not sure if this is the problem, but you have: > > selected(${q2012year}, 'yes') and select(${districts}, 'nyanga' > > That's missing a closing ) at the end, which might be confusing things. > > Best, > > Chris > > > > On Thu, Jan 10, 2013 at 11:42 AM, Daniel Probert <dpro...@camfed.org wrote: > >> Hi All, >> >> I've got myself a little confused over how I can use relevant within >> XLSForms and it may be what I'm trying to do is not possible. >> >> I'm trying to implement skip logic that is based on 2 previously select >> variables, if you look at the attached example, when I use the >> http://opendatakit.org/use/xlsform/ to convert ready for testing I >> receive an error: >> >> Error: There has been a problem trying to replace ${districts} with the >> XPath to the survey element named 'districts'. There is no survey element >> with this name. >> >> This is because of the relevant I've used on row 60, i can't find any >> example of multi-relevant so maybe it's just my syntax - i hope it's >> something quick and simple. >> >> cheers >> dan >> >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> > >