How to Skip Questions Based on Multiple Answers

Hello All,

I am designing a survey for an impact evaluation in Kenya and am trying to
figure out how to skip a question based on multiple answers, not just one.
I realize that one can use the code ${variable} = 'answer' but an wondering
what code I use if I want a certain group of questions to be asked if the
orginal question was answersed in more than one way.

In my specific case it is asking the impact of the event on the family's
economic status and if the response is a degree that is negative, the
survey asks what strategy the family used to face the event and then if the
household recovered economically. I'd like the last two questions to be
asked only if the response to the impact question is "slightly negative" or
"negative". I understand that I could break up the question into pos/neg
and then the degree of pos/neg but since situations like this occur often
I'd rather save the future cleaning that would be necessary in Stata.

Thank you!

You can place arbitrary Boolean expressions in relevance. For example:

selected(${sex}, 'female') and not(selected(${birthctrl}, 'none'))
would be relevant if a female specified they use some of form of birth
control (not 'none'). You can use 'and', 'or', and 'not' with appropriate
parentheses to set order of evaluation.

ยทยทยท On Tue, May 14, 2013 at 10:58 AM, Kara Kara wrote:

Hello All,

I am designing a survey for an impact evaluation in Kenya and am trying to
figure out how to skip a question based on multiple answers, not just one.
I realize that one can use the code ${variable} = 'answer' but an wondering
what code I use if I want a certain group of questions to be asked if the
orginal question was answersed in more than one way.

In my specific case it is asking the impact of the event on the family's
economic status and if the response is a degree that is negative, the
survey asks what strategy the family used to face the event and then if the
household recovered economically. I'd like the last two questions to be
asked only if the response to the impact question is "slightly negative" or
"negative". I understand that I could break up the question into pos/neg
and then the degree of pos/neg but since situations like this occur often
I'd rather save the future cleaning that would be necessary in Stata.

Thank you!

--

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.

If you are new to XLSForm and the underlying XML file, the help links here:

will be helpful. The available functions for relevant and calculate
expressions are described here:

Mitch

ยทยทยท On Tue, May 14, 2013 at 11:10 AM, Gaetano Borriello < gaetano@cs.washington.edu> wrote:

You can place arbitrary Boolean expressions in relevance. For example:

selected(${sex}, 'female') and not(selected(${birthctrl}, 'none'))
would be relevant if a female specified they use some of form of birth
control (not 'none'). You can use 'and', 'or', and 'not' with appropriate
parentheses to set order of evaluation.

On Tue, May 14, 2013 at 10:58 AM, Kara Kara kaminski.kara@gmail.comwrote:

Hello All,

I am designing a survey for an impact evaluation in Kenya and am trying
to figure out how to skip a question based on multiple answers, not just
one. I realize that one can use the code ${variable} = 'answer' but an
wondering what code I use if I want a certain group of questions to be
asked if the orginal question was answersed in more than one way.

In my specific case it is asking the impact of the event on the family's
economic status and if the response is a degree that is negative, the
survey asks what strategy the family used to face the event and then if the
household recovered economically. I'd like the last two questions to be
asked only if the response to the impact question is "slightly negative" or
"negative". I understand that I could break up the question into pos/neg
and then the degree of pos/neg but since situations like this occur often
I'd rather save the future cleaning that would be necessary in Stata.

Thank you!

--

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.

--

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.

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

Hello Team
Namaste!

I am a beginer on ODK

I have a question,

I have one questionnaire contains 39 questions.

I just want to skip question no 2, 3 and 4, if surveyor selects option no 1 or 2 in question no 1, and question one has five options.

then what can be written in the relevent column

Please guide me.

Check this document: https://docs.opendatakit.org/form-logic/#conditionally-showing-questions

1 Like

Thanks a ton!

Vishwanath