Help on another skip logic issue

Hi, I need help on simple skip logic actually. I am trying to build a
survey form but get confuse on certain step of skip logic.

Suppose that i have this:

type name label relevant

text feed1 Type of feed 1 given..
text feed2 Type of feed 2 given..

How to set that the second question appears ONLY when first question is
answered?

It is understood if the type of question are select_one or select_multiple
(such ${feed1}='yes'), but indeed this is not yes-no question or multi
selection.
In short I try to set the relevant column like this:

type name label relevant

text feed1 Type of feed 1 given..
text feed2 Type of feed 2 given.. ${feed1}='if answered'

Any help will be very appreciated.

Thank you very much

Andre - Indonesia

Hi Andre,

Firstly you could consider making "feed1" mandatory. That way they could
not proceed to feed2, or any other question until it was answered. Usually
I think its good practice to make questions mandatory as it is possible for
a data collector to accidentally move past an optional question.

You could precede the two feed questions with a select one question "How
many feeds have you provided - 1, 2 or none" and make the next two
questions relevant based on the answer.

Alternately. You can test to see if any text has been entered into the
optional feed1 question using the string-length() function. So the
relevance for "feed2" would be:

string-length(${feed1}) > 0

regards

Neil

··· On Fri, Feb 12, 2016 at 1:31 AM, wrote:

Hi, I need help on simple skip logic actually. I am trying to build a
survey form but get confuse on certain step of skip logic.

Suppose that i have this:

type name label relevant

text feed1 Type of feed 1 given..
text feed2 Type of feed 2 given..

How to set that the second question appears ONLY when first question is
answered?

It is understood if the type of question are select_one or select_multiple
(such ${feed1}='yes'), but indeed this is not yes-no question or multi
selection.
In short I try to set the relevant column like this:

type name label relevant

text feed1 Type of feed 1 given..
text feed2 Type of feed 2 given.. ${feed1}='if answered'

Any help will be very appreciated.

Thank you very much

Andre - Indonesia

--

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.

--

Smap Consulting http://smap.com.au/| Mobile Data Collection Solutions
Application Developer - neilpenman@gmail.com minqiang.huang@gmail.com
Twitter: @dgmsot
Skype: ianaf4you
Phone: +61 402 975 959
Website: http://smap.com.au http://smap.com.au/blog

Thank you very much Neil.
I will go with first option, make the question mandatory.
And also, I have got additional odk vocab from you, that is to use "string
length" command.
Can I have any reference for odk-xls related command?

Thanks again!

Andre

Hi Andre,

You should be able to use the commands listed here

replace the "xpath/to..." with the xlsForm's ${question_name} syntax

regards

Neil

··· On Sun, Feb 14, 2016 at 5:54 PM, wrote:

Thank you very much Neil.
I will go with first option, make the question mandatory.
And also, I have got additional odk vocab from you, that is to use "string
length" command.
Can I have any reference for odk-xls related command?

Thanks again!

Andre

--

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.

--

Smap Consulting http://smap.com.au/| Mobile Data Collection Solutions
Application Developer - neilpenman@gmail.com minqiang.huang@gmail.com
Twitter: @dgmsot
Skype: ianaf4you
Phone: +61 402 975 959
Website: http://smap.com.au http://smap.com.au/blog