[ODK Community] contains string

Hi Hannah,

No such thing as a stupid question! Try using a regular expression.
relevant=regex(${lived_district},'to1')

Yaw

··· -- Need ODK consultants? Nafundi provides form design, server setup, in-field training, and software development for ODK. Go to https://nafundi.com to get started.

On Wed, Nov 11, 2015 at 6:30 PM, Hannah Betts hannahmeliabetts@gmail.com wrote:

Probably a really stupid question but it is driving me silly.

I am building a form in XLS form.

I have a select_multiple question.

I want to have the next question appear only if a particular answer is
selected in the select_multiple question.

However, I can't get the right syntax in the "relevant" column

If it was a select_one it would be no problem, the syntax =
${lived_district} = 'to1'

However, I need it to appear if lived_district has as ONE of its answers
'to1', possibly among many.

So some sort of contains/instring is needed. Played around with some of the
obvious wildcards but getting nowhere.

Any suggestions?

--

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.

And remember: relevant conditions are only evaluated upon first
constructing the page.

This means that you cannot have the 2nd question on the same page as the
first (i.e., in a field-list group). They have to be on two different pages.

··· On Wed, Nov 11, 2015 at 7:29 AM, Yaw Anokwa wrote:

Hi Hannah,

No such thing as a stupid question! Try using a regular expression.
relevant=regex(${lived_district},'to1')

Yaw

Need ODK consultants? Nafundi provides form design, server setup,
in-field training, and software development for ODK. Go to
https://nafundi.com to get started.

On Wed, Nov 11, 2015 at 6:30 PM, Hannah Betts hannahmeliabetts@gmail.com wrote:

Probably a really stupid question but it is driving me silly.

I am building a form in XLS form.

I have a select_multiple question.

I want to have the next question appear only if a particular answer is
selected in the select_multiple question.

However, I can't get the right syntax in the "relevant" column

If it was a select_one it would be no problem, the syntax =
${lived_district} = 'to1'

However, I need it to appear if lived_district has as ONE of its answers
'to1', possibly among many.

So some sort of contains/instring is needed. Played around with some of
the
obvious wildcards but getting nowhere.

Any suggestions?

--

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.

--

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.

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

Thanks guys. I actually got it to work! Woohooo.

The thing about only on the next page is a right pain. My select_one
or_other questions make a lot less sense than I was hoping because of it.

But my form is looking pretty good now

Thanks again

Hannah

··· On Wednesday, 11 November 2015 15:30:44 UTC, Yaw Anokwa wrote:

Hi Hannah,

No such thing as a stupid question! Try using a regular expression.
relevant=regex(${lived_district},'to1')

Yaw

Need ODK consultants? Nafundi provides form design, server setup,
in-field training, and software development for ODK. Go to
https://nafundi.com to get started.

On Wed, Nov 11, 2015 at 6:30 PM, Hannah Betts <hannahme...@gmail.com <javascript:>> wrote:

Probably a really stupid question but it is driving me silly.

I am building a form in XLS form.

I have a select_multiple question.

I want to have the next question appear only if a particular answer is
selected in the select_multiple question.

However, I can't get the right syntax in the "relevant" column

If it was a select_one it would be no problem, the syntax =
${lived_district} = 'to1'

However, I need it to appear if lived_district has as ONE of its
answers
'to1', possibly among many.

So some sort of contains/instring is needed. Played around with some of
the
obvious wildcards but getting nowhere.

Any suggestions?

--

Post: opend...@googlegroups.com <javascript:>
Unsubscribe: opendatakit...@googlegroups.com <javascript:>
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...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/d/optout.