Relevance for any answer given in select multiple

Hi

I am looking for the wildcard that I can put into the relevant column for a
question to be relevant for ANY answer given in a previous select multiple
question.

I have a question where an intercrop can be selected from a long list of
crops. This question is not marked as required thus if no intercrop is
grown, the question need not be answered.

I have questions that pertain to the intercrop, however if the initial
question is not answered these are not relevant.

I have used:* selected(${intercrop1}, name)* but this does not work. can
anyone suggest what I can use as a wildcard for any answer given to
${intercrop1}?

Many Thanks

Carl

Carl,

Try this..

not(${intercrop1}='')

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Thu, May 15, 2014 at 11:50 PM, Carl Timler carl.timler@gmail.com wrote:

Hi

I am looking for the wildcard that I can put into the relevant column for a
question to be relevant for ANY answer given in a previous select multiple
question.

I have a question where an intercrop can be selected from a long list of
crops. This question is not marked as required thus if no intercrop is
grown, the question need not be answered.

I have questions that pertain to the intercrop, however if the initial
question is not answered these are not relevant.

I have used: selected(${intercrop1}, name) but this does not work. can
anyone suggest what I can use as a wildcard for any answer given to
${intercrop1}?

Many Thanks

Carl

--

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 that worked!

I have another relevance question.

I have a calculation, thereafter a question ${manure_collected} that will
only be relevant if the answer is greater than zero

In the relevant column I have selected(${manure_collected}, >0)

I get a 'bad node' error, what am I doing wrong?

greetings
Carl

Hi Carl,

http://opendatakit.org/help/form-design/binding has usage information.

selected(xpath/to/node, value) checks to see if node contains the
value. What you want to do is check to see if the node is > 0. To do
that, use ${manure_collected} > 0.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Fri, May 16, 2014 at 1:27 PM, Carl Timler carl.timler@gmail.com wrote:

Thanks Yaw that worked!

I have another relevance question.

I have a calculation, thereafter a question ${manure_collected} that will
only be relevant if the answer is greater than zero

In the relevant column I have selected(${manure_collected}, >0)

I get a 'bad node' error, what am I doing wrong?

greetings
Carl

--

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.

Hi Yaw

Once again, MANY THANKS for your help.

That worked exactly as I wanted.

Your support is fantastic

Greetings
Carl