Going Back to a Question

I am currently working on a survey that requires that after a certain
condition, we go back to a previous question.

For example, say you have:

Q1
Q2
If Q2 = Y; goto Q1
Q3

When Q2= Y then it goes back to asking Q1 and Q2. It breaks out of
this loop only when Q2 = N.

Would this be possible using ODK?

Thank You,

Sanjeev

Sanjeev,

you might benefit from our ODK compatible form designer, the KoBo Form
Designer http://www.peacebuildingdata.org/kfb/KoBoFormDesigner.html which
allows easy construction of complex skip logic. It will allow you to add
skip logic to multiple questions at once, and you can copy-paste questions
to duplicate them in the graphical form tree. It also has a beta-feature,
cascading selection from itemsets.

You can find it at
http://www.peacebuildingdata.org/kfb/KoBoFormDesigner.html

let me know if I can help you with the details.

☞§※☼:airplane::open_umbrella::slight_smile:
~Neil

··· On Mon, Sep 19, 2011 at 4:13 PM, Sanjeev Swamy wrote:

I am currently working on a survey that requires that after a certain
condition, we go back to a previous question.

For example, say you have:

Q1
Q2
If Q2 = Y; goto Q1
Q3

When Q2= Y then it goes back to asking Q1 and Q2. It breaks out of
this loop only when Q2 = N.

Would this be possible using ODK?

Thank You,

Sanjeev

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

hi sanjeev,

we don't support gotos. we do have a notion of repeating, but that's
to create more prompts inside the loop. there is no easy way to have
an exit condition based on an answer.

could you describe more about what these prompts would be? we might be
able to figure out a different approach.

yaw

··· On Mon, Sep 19, 2011 at 23:13, Sanjeev Swamy wrote: > I am currently working on a survey that requires that after a certain > condition, we go back to a previous question. > > For example, say you have: > > Q1 > Q2 > If Q2 = Y; goto Q1 > Q3 > > > When Q2= Y then it goes back to asking Q1 and Q2. It breaks out of > this loop only when Q2 = N. > > Would this be possible using ODK? > > Thank You, > > Sanjeev > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

hi Yaw,

I think I'm just going to create duplicate variables asking the same
question, instead.

For example,

Q1
Q2
If Q2 = Y then (..going back to Q1)
Q1_duplicate
Q2_duplicate
if Q2_duplicate = Y then
Q1_duplicate2
Q2_duplicate2
....
Q3

Please let me know if there is a better approach I can take.

Thanks,

Sanjeev

··· On Sep 20, 11:07 am, Yaw Anokwa wrote: > hi sanjeev, > > we don't support gotos. we do have a notion of repeating, but that's > to create more prompts inside the loop. there is no easy way to have > an exit condition based on an answer. > > could you describe more about what these prompts would be? we might be > able to figure out a different approach. > > yaw > > > > > > > > On Mon, Sep 19, 2011 at 23:13, Sanjeev Swamy wrote: > > I am currently working on a survey that requires that after a certain > > condition, we go back to a previous question. > > > For example, say you have: > > > Q1 > > Q2 > > If Q2 = Y; goto Q1 > > Q3 > > > When Q2= Y then it goes back to asking Q1 and Q2. It breaks out of > > this loop only when Q2 = N. > > > Would this be possible using ODK? > > > Thank You, > > > Sanjeev > > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options:http://groups.google.com/group/opendatakit?hl=en

that's what i'd do....

··· On Tue, Sep 20, 2011 at 18:38, Sanjeev Swamy wrote: > hi Yaw, > > I think I'm just going to create duplicate variables asking the same > question, instead. > > For example, > > Q1 > Q2 > If Q2 = Y then (..going back to Q1) > Q1_duplicate > Q2_duplicate > if Q2_duplicate = Y then > Q1_duplicate2 > Q2_duplicate2 > .... > Q3 > > > Please let me know if there is a better approach I can take. > > Thanks, > > Sanjeev > > On Sep 20, 11:07 am, Yaw Anokwa wrote: >> hi sanjeev, >> >> we don't support gotos. we do have a notion of repeating, but that's >> to create more prompts inside the loop. there is no easy way to have >> an exit condition based on an answer. >> >> could you describe more about what these prompts would be? we might be >> able to figure out a different approach. >> >> yaw >> >> >> >> >> >> >> >> On Mon, Sep 19, 2011 at 23:13, Sanjeev Swamy wrote: >> > I am currently working on a survey that requires that after a certain >> > condition, we go back to a previous question. >> >> > For example, say you have: >> >> > Q1 >> > Q2 >> > If Q2 = Y; goto Q1 >> > Q3 >> >> > When Q2= Y then it goes back to asking Q1 and Q2. It breaks out of >> > this loop only when Q2 = N. >> >> > Would this be possible using ODK? >> >> > Thank You, >> >> > Sanjeev >> >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options:http://groups.google.com/group/opendatakit?hl=en > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >