Skipping questions

Hi,
I have a question related to skip patterns. I'll use the likes_pizza
example from the website (http://opendatakit.org/help/form-design/xlsform/)
as a reference.

Is it possible to include logic on the likes_pizza question instead of
programming it into the following question? For my survey, questions with
multiple responses give multiple skip patterns. For example, 1 goes to the
next question but 2 skips to the next section and 3 skips to the end of the
survey.

Thanks!
Kalee

Hi Kalee,

Selected is already a logic function and return true or false

So, Yes you can for example display the next questions with this logic
selected(${likes_pizza}, ‘1’)
Then the next section for selected(${likes_pizza}, ‘1’) or
selected(${likes_pizza}, ‘2’) more or less equal to
not(selected(${likes_pizza}, ‘3’))

Clement

··· On Wednesday, June 5, 2013 4:07:48 AM UTC+7, Katharine Lee McFadden wrote: > > Hi, > I have a question related to skip patterns. I'll use the likes_pizza > example from the website (http://opendatakit.org/help/form-design/xlsform/) > as a reference. > > Is it possible to include logic on the likes_pizza question instead of > programming it into the following question? For my survey, questions with > multiple responses give multiple skip patterns. For example, 1 goes to the > next question but 2 skips to the next section and 3 skips to the end of the > survey. > > Thanks! > Kalee > > >

Hi Kalee,

Thinking of branching as skips ends up making form design more
confusing. ODK doesn't have skips. It has relevance. That is, a prompt
will be show to the user if it's relevant. So if you want a prompt to
show up when likes_pizza is 2, you put "selected(${likes_pizza}, ‘2’)"
as the relevance condition for that prompt.

Yaw

··· -- Need ODK help? Go to http://nafundi.com for custom features, form design, implementation support, and user training for ODK.

On Tue, Jun 4, 2013 at 10:45 PM, Clément Péron peron.clem@gmail.com wrote:

Hi Kalee,

Selected is already a logic function and return true or false

So, Yes you can for example display the next questions with this logic
selected(${likes_pizza}, ‘1’)
Then the next section for selected(${likes_pizza}, ‘1’) or
selected(${likes_pizza}, ‘2’) more or less equal to
not(selected(${likes_pizza}, ‘3’))

Clement

On Wednesday, June 5, 2013 4:07:48 AM UTC+7, Katharine Lee McFadden wrote:

Hi,
I have a question related to skip patterns. I'll use the likes_pizza
example from the website (http://opendatakit.org/help/form-design/xlsform/)
as a reference.

Is it possible to include logic on the likes_pizza question instead of
programming it into the following question? For my survey, questions with
multiple responses give multiple skip patterns. For example, 1 goes to the
next question but 2 skips to the next section and 3 skips to the end of the
survey.

Thanks!
Kalee

--

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/groups/opt_out.