How to have question go to the end of a form

Hi,
I'm implementing XForms for ODK-Voice and in a form which has 7
questions, the first question asks if we are in contact with the right
person. If the person responds no (by touching the key 2 on their
phone), we need to form to go to the last prompt or to end, either
one, and skip the remaining 6 questions. How can I do that in an
Xform?

I'm attaching the xml here just in case anyone wants to look at it.

Thanks,

Joaquin

automatizado-auto-manejo-alimentacion.xml (29.9 KB)

you'll want something like this on the binds in questions 2-7...

relevant="selected(/form/question2, 'y')"

··· 2011/1/25 Joaquín Blaya : > Hi, > I'm implementing XForms for ODK-Voice and in a form which has 7 > questions, the first question asks if we are in contact with the right > person. If the person responds no (by touching the key 2 on their > phone), we need to form to go to the last prompt or to end, either > one, and skip the remaining 6 questions. How can I do that in an > Xform? > > I'm attaching the xml here just in case anyone wants to look at it. > > Thanks, > > Joaquin > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Thanks Yaw, so you have to specify the relevant criteria for each
question, there's no way in xforms to specify depending on an answer
to go to a specific question. i.e. if selected(form/question2,'y')
then goto /form/question7 ?

J

··· On Tue, Jan 25, 2011 at 10:07 PM, Yaw Anokwa wrote: > you'll want something like this on the binds in questions 2-7... > > relevant="selected(/form/question2, 'y')" > > > 2011/1/25 Joaquín Blaya : >> Hi, >> I'm implementing XForms for ODK-Voice and in a form which has 7 >> questions, the first question asks if we are in contact with the right >> person. If the person responds no (by touching the key 2 on their >> phone), we need to form to go to the last prompt or to end, either >> one, and skip the remaining 6 questions. How can I do that in an >> Xform? >> >> I'm attaching the xml here just in case anyone wants to look at it. >> >> Thanks, >> >> Joaquin >> >> -- >> 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 >

--


Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org

unfortunately, i don't think you can do gotos in xforms.

··· On Wed, Jan 26, 2011 at 06:52, Joaquín Blaya wrote: > Thanks Yaw, so you have to specify the relevant criteria for each > question, there's no way in xforms to specify depending on an answer > to go to a specific question. i.e. if selected(form/question2,'y') > then goto /form/question7 ? > > J > > On Tue, Jan 25, 2011 at 10:07 PM, Yaw Anokwa wrote: >> you'll want something like this on the binds in questions 2-7... >> >> relevant="selected(/form/question2, 'y')" >> >> >> 2011/1/25 Joaquín Blaya : >>> Hi, >>> I'm implementing XForms for ODK-Voice and in a form which has 7 >>> questions, the first question asks if we are in contact with the right >>> person. If the person responds no (by touching the key 2 on their >>> phone), we need to form to go to the last prompt or to end, either >>> one, and skip the remaining 6 questions. How can I do that in an >>> Xform? >>> >>> I'm attaching the xml here just in case anyone wants to look at it. >>> >>> Thanks, >>> >>> Joaquin >>> >>> -- >>> 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 >> > > > > -- > ___________________________________________________________________ > Gerente de Desarrollo, eHealth Systems > Research Fellow, Escuela de Medicina de Harvard > Moderador, GHDOnline.org > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >