Questionaire

Here’s the scenario: I have 2 questions to do. each question with the same options. When I select one of them I want that the second question do not show the option selected in the previous question.

I think you are talking about Cascading selections, like when you select the state you live in, then the next question shows you cities in that state but not cities in other states. Is that what you are trying to do?
If yes, you can learn about this function here: http://www.kobotoolbox.org/support/userguide/koboform/cascadingselect

If not, send an example of the questions you are trying to create.

~Neil Hendrick
KoBo Developer

···

On Thu, Aug 9, 2012 at 12:43 PM, AndersonLopes andersoncley...@gmail.com wrote:

Here’s the scenario: I have 2 questions to do. each question with the same options. When I select one of them I want that the second question do not show the option selected in the previous question.

You received this message because you are subscribed to the Google Groups “Kobo Users” group.

To view this discussion on the web visit https://groups.google.com/d/msg/kobo-users/-/SUVxTJHUvZsJ.

To post to this group, send email to kobo-...@googlegroups.com.

To unsubscribe from this group, send email to kobo-users+...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/kobo-users?hl=en.

From what I understand, the use case would be

Question A and question B have the 5 same answers, from 1 to 5.

On question A, user responds “3”

When Question B comes up, only answers 1,2,4, and 5 are displayed.

I can see many examples were this would be useful, but unfortunately, it is not supported in KoBoForm. The alternative would be to work around skipping patterns, but it would require coding each possible case.

So you would code

question B1, with options 2,3,4, and 5, that is shown only if A=1

Then

question B2 with options 1,3,4,5 that is shown only if A=2,

And so on.

This may become quite cumbersome and lengthy, but even coding directly in your form, I am not sure you can specify display options for responses.

Neil?

···

On Thu, Aug 9, 2012 at 12:43 PM, AndersonLopes andersoncley...@gmail.com wrote:

Here’s the scenario: I have 2 questions to do. each question with the same options. When I select one of them I want that the second question do not show the option selected in the previous question.

You received this message because you are subscribed to the Google Groups “Kobo Users” group.

To view this discussion on the web visit
https://groups.google.com/d/msg/kobo-users/-/SUVxTJHUvZsJ
.

To post to this group, send email to
kobo-...@googlegroups.com.

To unsubscribe from this group, send email to
kobo-users+unsu...@googlegroups.com.

For more options, visit this group at
http://groups.google.com/group/kobo-users?hl=en
.

You received this message because you are subscribed to the Google Groups “Kobo Users” group.

To post to this group, send email to
kobo-...@googlegroups.com.

To unsubscribe from this group, send email to
kobo-users+unsu...@googlegroups.com.

For more options, visit this group at
http://groups.google.com/group/kobo-users?hl=en
.

I think an alternative approach would be add a constraint to succeeding questions where you still show the same choices but an answer cannot be equal to any of the previous ones.

Check out this example: XLS | XML

···

On Friday, August 10, 2012, Vinck, Patrick wrote:

From what I understand, the use case would be

Question A and question B have the 5 same answers, from 1 to 5.

On question A, user responds “3”

When Question B comes up, only answers 1,2,4, and 5 are displayed.

I can see many examples were this would be useful, but unfortunately, it is not supported in KoBoForm. The alternative would be to work around skipping patterns, but it would require coding each possible case.

So you would code

question B1, with options 2,3,4, and 5, that is shown only if A=1

Then

question B2 with options 1,3,4,5 that is shown only if A=2,

And so on.

This may become quite cumbersome and lengthy, but even coding directly in your form, I am not sure you can specify display options for responses.

Neil?

From: kobo-...@googlegroups.com [mailto:kobo-...@googlegroups.com] On Behalf Of Neil Hendrick

Sent: Thursday, August 09, 2012 11:13 PM

To: kobo-...@googlegroups.com

Subject: Re: [KoBo Users] Questionaire

I think you are talking about Cascading selections, like when you select the state you live in, then the next question shows you cities in that state but not cities in other states. Is that what you are trying to do?

If yes, you can learn about this function here:
http://www.kobotoolbox.org/support/userguide/koboform/cascadingselect

If not, send an example of the questions you are trying to create.

~Neil Hendrick

KoBo Developer

On Thu, Aug 9, 2012 at 12:43 PM, AndersonLopes andersoncley...@gmail.com wrote:

Here’s the scenario: I have 2 questions to do. each question with the same options. When I select one of them I want that the second question do not show the option selected in the previous question.

You received this message because you are subscribed to the Google Groups “Kobo Users” group.

To view this discussion on the web visit
https://groups.google.com/d/msg/kobo-users/-/SUVxTJHUvZsJ
.

To post to this group, send email to
kobo-...@googlegroups.com.

To unsubscribe from this group, send email to
kobo-users+...@googlegroups.com.

For more options, visit this group at
http://groups.google.com/group/kobo-users?hl=en
.

You received this message because you are subscribed to the Google Groups “Kobo Users” group.

To post to this group, send email to
kobo-...@googlegroups.com.

To unsubscribe from this group, send email to
kobo-users+...@googlegroups.com.

For more options, visit this group at
http://groups.google.com/group/kobo-users?hl=en
.

You received this message because you are subscribed to the Google Groups “Kobo Users” group.

To post to this group, send email to kobo-...@googlegroups.com.

To unsubscribe from this group, send email to kobo-users+...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/kobo-users?hl=en.

In Patrick’s example :

Question A and question B have the 5 same answers, from 1 to 5.
On question A, user responds “3”

When Question B comes up, only answers 1,2,4, and 5 are displayed.

I can see you using this for providing options that can’t be used more than once. Like selecting a resource that is used up and can’t repeat.

What is your favorite color?

**Red **

Blue

Green

What is your second favorite color?

Red (not selectable)

Blue

Green

What is your third favorite color?

Red (not selectable)

Blue (not selectable)

Green

This is an interesting case and thought experiment. Xforms does not support skip logic being applied to the options, only to the question as a whole. This isn’t specific to KoBoForms, but to Xforms itself.

Patrick’s suggestion to create multiple questions at each level will work, but it will be a tedious process.

What is your favorite color?

**Red **

Blue

Green

(if COLOR = RED) (If COLOR = GREEN) (If COLOR = BLUE)

What is your second favorite color? What is your second favorite color? What is your second favorite color?

Red Red

Blue Blue

Green Green

What is your third favorite color?

(Here it gets messy, you have to add a question for every possible combination of the previous two questions)

So, it’s complicated, but it is doable and it will work.

Nikolai’s suggestion is clever, too. By adding constraints to the following questions, you can set it up so that the answer to THIS question cannot be equal to the answer from the previous question.

constraint="(. != /favorite/color1)" jr:constraintMsg=“That color has been selected, choose another.”

On the next level down, you will have to use multiple conditions.

constraint="(. != /favorite/color1) AND (. != /favorite/color2)" jr:constraintMsg=“That color has been selected, choose another.”

So, the consensus is, you can’t do it exactly the way you intend, but you can do it some way. The skip logic gets a little complicated, but give it a shot. Post your next version if you have any trouble.

~Neil

···

On Fri, Aug 10, 2012 at 12:55 AM, ゴー・ニコライ nikol...@gmail.com wrote:

I think an alternative approach would be add a constraint to succeeding questions where you still show the same choices but an answer cannot be equal to any of the previous ones.

Check out this example: XLS | XML

On Friday, August 10, 2012, Vinck, Patrick wrote:

From what I understand, the use case would be

Question A and question B have the 5 same answers, from 1 to 5.

On question A, user responds “3”

When Question B comes up, only answers 1,2,4, and 5 are displayed.

I can see many examples were this would be useful, but unfortunately, it is not supported in KoBoForm. The alternative would be to work around skipping patterns,
but it would require coding each possible case.

So you would code

question B1, with options 2,3,4, and 5, that is shown only if A=1

Then

question B2 with options 1,3,4,5 that is shown only if A=2,

And so on.

This may become quite cumbersome and lengthy, but even coding directly in your form, I am not sure you can specify display options for responses.

Neil?

From: kobo-...@googlegroups.com [mailto:kobo-...@googlegroups.com]
On Behalf Of Neil Hendrick

Sent: Thursday, August 09, 2012 11:13 PM

To: kobo-...@googlegroups.com

Subject: Re: [KoBo Users] Questionaire

I think you are talking about Cascading selections, like when you select the state you live in, then the next question shows you cities in that state but not cities in other states. Is that what you are trying
to do?

If yes, you can learn about this function here:
http://www.kobotoolbox.org/support/userguide/koboform/cascadingselect

If not, send an example of the questions you are trying to create.

~Neil Hendrick

KoBo Developer

On Thu, Aug 9, 2012 at 12:43 PM, AndersonLopes andersoncley...@gmail.com wrote:

Here’s the scenario: I have 2 questions to do. each question with the same options. When I select one of them I want that the second question do not show the option selected in the previous question.

You received this message because you are subscribed to the Google Groups “Kobo Users” group.

To view this discussion on the web visit
https://groups.google.com/d/msg/kobo-users/-/SUVxTJHUvZsJ
.

To post to this group, send email to
kobo-...@googlegroups.com.

To unsubscribe from this group, send email to
kobo-users+...@googlegroups.com.

For more options, visit this group at
http://groups.google.com/group/kobo-users?hl=en
.

You received this message because you are subscribed to the Google Groups “Kobo Users” group.

To post to this group, send email to
kobo-...@googlegroups.com.

To unsubscribe from this group, send email to
kobo-users+...@googlegroups.com.

For more options, visit this group at
http://groups.google.com/group/kobo-users?hl=en
.

You received this message because you are subscribed to the Google Groups “Kobo Users” group.

To post to this group, send email to kobo-...@googlegroups.com.

To unsubscribe from this group, send email to kobo-users+...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/kobo-users?hl=en.

You received this message because you are subscribed to the Google Groups “Kobo Users” group.

To post to this group, send email to kobo-...@googlegroups.com.

To unsubscribe from this group, send email to kobo-users+...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/kobo-users?hl=en.