# Conditional jump and lock question in xform

**URL:** <https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645>\
**Category:** Support\
**Created:** [August 20, 2011, 7:03am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645 "2011-08-20T07:03:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinit\_Sharma](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@Vinit\_Sharma](https://forum.getodk.org/u/Vinit_Sharma)\
**Post date:** [August 20, 2011, 7:03am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/1 "2011-08-20T07:03:14Z")

</div>

Dear all,

I want to know about the conditional jump like on the selecting particular  
answer jump to the specified question and lock the particular question and  
make some question mandatory or required .

In the sample form i could only find about the skipping rules.

Thanks in advance

Best Regards  
Vinit

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 20, 2011, 3:18pm UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/2 "2011-08-20T15:18:02Z")

</div>

vinit,

please check out the following resources. the design tutorial should  
be particularly useful. also, the widgets forms in the sample form  
repo has examples of conditional branching and required questions.

form guidelines: [http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines](http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines)  
form design tutorial: [https://bitbucket.org/javarosa/javarosa/wiki/buildxforms](https://bitbucket.org/javarosa/javarosa/wiki/buildxforms)  
sample forms: [http://code.google.com/p/opendatakit/source/browse/?repo=forms](http://code.google.com/p/opendatakit/source/browse/?repo=forms)

yaw

> **···**
>
> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma wrote: \> Dear all, \> I want to know about the conditional jump like on the selecting particular \> answer jump to the specified question and lock the particular question and \> make some question mandatory or required . \> In the sample form i could only find about the skipping rules. \> Thanks in advance \> Best Regards \> Vinit \> \> -- \> Post: opendatakit@googlegroups.com \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \> Options: http://groups.google.com/group/opendatakit?hl=en \>

---

<div class="post-metadata">

**Author:** ![Vinit\_Sharma](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@Vinit\_Sharma](https://forum.getodk.org/u/Vinit_Sharma)\
**Post date:** [August 23, 2011, 4:52am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/3 "2011-08-23T04:52:24Z")

</div>

Thanks a lot for great help

I just want to ask can i jump to the particular question on the basis  
of the answer and can i block more than one question on the answer of  
the question

> **···**
>
> On Aug 20, 8:18 pm, Yaw Anokwa wrote: \> vinit, \> \> please check out the following resources. the design tutorial should \> be particularly useful. also, the widgets forms in the sample form \> repo has examples of conditional branching and required questions. \> \> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \> \> yaw \> \> \> \> \> \> \> \> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma wrote: \> \> Dear all, \> \> I want to know about the conditional jump like on the selecting particular \> \> answer jump to the specified question and lock the particular question and \> \> make some question mandatory or required . \> \> In the sample form i could only find about the skipping rules. \> \> Thanks in advance \> \> Best Regards \> \> Vinit \> \> \> -- \> \> Post: opendatakit@googlegroups.com \> \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \> \> Options:http://groups.google.com/group/opendatakit?hl=en

---

<div class="post-metadata">

**Author:** ![gaetano](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/g/b9e5f3/32.png) [@gaetano](https://forum.getodk.org/u/gaetano)\
**Post date:** [August 23, 2011, 5:46am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/4 "2011-08-23T05:46:59Z")

</div>

Vinit:

Questions have a "relevancy" or "skip condition", in the negative. If  
the question is not "relevant" then it will be skipped. That can  
apply to as many questions as you like. So, you can have an entire  
branch of questions not appear if they share the same condition.

Gaetano

> **···**
>
> On Mon, Aug 22, 2011 at 9:52 PM, Vinit Sharma wrote: \> \> Thanks a lot for great help \> \> I just want to ask can i jump to the particular question on the basis \> of the answer and can i block more than one question on the answer of \> the question \> \> \> On Aug 20, 8:18 pm, Yaw Anokwa wrote: \>\> vinit, \>\> \>\> please check out the following resources. the design tutorial should \>\> be particularly useful. also, the widgets forms in the sample form \>\> repo has examples of conditional branching and required questions. \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \>\> \>\> yaw \>\> \>\> \>\> \>\> \>\> \>\> \>\> \>\> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma wrote: \>\> \> Dear all, \>\> \> I want to know about the conditional jump like on the selecting particular \>\> \> answer jump to the specified question and lock the particular question and \>\> \> make some question mandatory or required . \>\> \> In the sample form i could only find about the skipping rules. \>\> \> Thanks in advance \>\> \> Best Regards \>\> \> Vinit \>\> \>\> \> -- \>\> \> 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 \>

---

<div class="post-metadata">

**Author:** ![Vinit\_Sharma](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@Vinit\_Sharma](https://forum.getodk.org/u/Vinit_Sharma)\
**Post date:** [August 23, 2011, 9:42am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/5 "2011-08-23T09:42:09Z")

</div>

Thanks for your quick reply  
i still have some query

1. can i use '&&' operation in "relavent" ? like  
\<bind nodeset="pregnant" required="true()" relevant="../sex='f'" &&  
"../age" \< 40 /\>  
where i want to use condition like if the gender is female(f) and her  
age is less than 40 than only this particular question should display

2. can i jump to the particular question say question number 10 on the  
answer of particular question

Best Regards  
Vinit

> **···**
>
> On Aug 23, 10:46 am, Gaetano Borriello wrote: \> Vinit: \> \> Questions have a "relevancy" or "skip condition", in the negative. If \> the question is not "relevant" then it will be skipped. That can \> apply to as many questions as you like. So, you can have an entire \> branch of questions not appear if they share the same condition. \> \> Gaetano \> \> \> \> \> \> \> \> On Mon, Aug 22, 2011 at 9:52 PM, Vinit Sharma wrote: \> \> \> Thanks a lot for great help \> \> \> I just want to ask can i jump to the particular question on the basis \> \> of the answer and can i block more than one question on the answer of \> \> the question \> \> \> On Aug 20, 8:18 pm, Yaw Anokwa wrote: \> \>\> vinit, \> \> \>\> please check out the following resources. the design tutorial should \> \>\> be particularly useful. also, the widgets forms in the sample form \> \>\> repo has examples of conditional branching and required questions. \> \> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \> \> \>\> yaw \> \> \>\> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma wrote: \> \>\> \> Dear all, \> \>\> \> I want to know about the conditional jump like on the selecting particular \> \>\> \> answer jump to the specified question and lock the particular question and \> \>\> \> make some question mandatory or required . \> \>\> \> In the sample form i could only find about the skipping rules. \> \>\> \> Thanks in advance \> \>\> \> Best Regards \> \>\> \> Vinit \> \> \>\> \> -- \> \>\> \> 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

---

<div class="post-metadata">

**Author:** ![gaetano](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/g/b9e5f3/32.png) [@gaetano](https://forum.getodk.org/u/gaetano)\
**Post date:** [August 23, 2011, 10:30am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/6 "2011-08-23T10:30:10Z")

</div>

1. yes

form guidelines: [http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines](http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines)  
form design tutorial: [https://bitbucket.org/javarosa/javarosa/wiki/buildxforms](https://bitbucket.org/javarosa/javarosa/wiki/buildxforms)  
sample forms: [http://code.google.com/p/opendatakit/source/browse/?repo=forms](http://code.google.com/p/opendatakit/source/browse/?repo=forms)

1. no, no jump, just relevancy

> **···**
>
> On Tue, Aug 23, 2011 at 2:42 AM, Vinit Sharma wrote: \> Thanks for your quick reply \> i still have some query \> \> 1) can i use '&&' operation in "relavent" ? like \> "../age" \< 40 /\> \> where i want to use condition like if the gender is female(f) and her \> age is less than 40 than only this particular question should display \> \> 2) can i jump to the particular question say question number 10 on the \> answer of particular question \> \> Best Regards \> Vinit \> \> On Aug 23, 10:46 am, Gaetano Borriello wrote: \>\> Vinit: \>\> \>\> Questions have a "relevancy" or "skip condition", in the negative. If \>\> the question is not "relevant" then it will be skipped. That can \>\> apply to as many questions as you like. So, you can have an entire \>\> branch of questions not appear if they share the same condition. \>\> \>\> Gaetano \>\> \>\> \>\> \>\> \>\> \>\> \>\> \>\> On Mon, Aug 22, 2011 at 9:52 PM, Vinit Sharma wrote: \>\> \>\> \> Thanks a lot for great help \>\> \>\> \> I just want to ask can i jump to the particular question on the basis \>\> \> of the answer and can i block more than one question on the answer of \>\> \> the question \>\> \>\> \> On Aug 20, 8:18 pm, Yaw Anokwa wrote: \>\> \>\> vinit, \>\> \>\> \>\> please check out the following resources. the design tutorial should \>\> \>\> be particularly useful. also, the widgets forms in the sample form \>\> \>\> repo has examples of conditional branching and required questions. \>\> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \>\> \>\> \>\> yaw \>\> \>\> \>\> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma wrote: \>\> \>\> \> Dear all, \>\> \>\> \> I want to know about the conditional jump like on the selecting particular \>\> \>\> \> answer jump to the specified question and lock the particular question and \>\> \>\> \> make some question mandatory or required . \>\> \>\> \> In the sample form i could only find about the skipping rules. \>\> \>\> \> Thanks in advance \>\> \>\> \> Best Regards \>\> \>\> \> Vinit \>\> \>\> \>\> \> -- \>\> \>\> \> 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 \> \> -- \> Post: opendatakit@googlegroups.com \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \> Options: http://groups.google.com/group/opendatakit?hl=en \>

---

<div class="post-metadata">

**Author:** ![Vinit\_Sharma](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@Vinit\_Sharma](https://forum.getodk.org/u/Vinit_Sharma)\
**Post date:** [August 23, 2011, 11:36am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/7 "2011-08-23T11:36:29Z")

</div>

It would be great help if you can give some syntax help because i  
have seen all the sample forms and the link provided by you but i  
couldn't find relevant with and operation  
I have tried following ..

1\> \<bind nodeset="name" required="true()" relevant= ("../  
sex='f'" )and( "../interests='music'")/\>  
2\> \<bind nodeset="name" required="true()" relevant= ("../  
sex='f'" )&&( "../interests='music'")/\>  
3\> \<bind nodeset="name" required="true()" relevant= "selected(../  
interests, 'music')" and "selected(../sex, 'f')" /\>  
4\> \<bind nodeset="name" required="true()" relevant= "selected(../  
interests, 'music')" &&"selected(../sex, 'f')" /\>

> **···**
>
> On Aug 23, 3:30 pm, Gaetano Borriello wrote: \> 1) yes \> \> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \> \> 2) no, no jump, just relevancy \> \> \> \> \> \> \> \> On Tue, Aug 23, 2011 at 2:42 AM, Vinit Sharma wrote: \> \> Thanks for your quick reply \> \> i still have some query \> \> \> 1) can i use '&&' operation in "relavent" ? like \> \> \> "../age" \< 40 /\> \> \> where i want to use condition like if the gender is female(f) and her \> \> age is less than 40 than only this particular question should display \> \> \> 2) can i jump to the particular question say question number 10 on the \> \> answer of particular question \> \> \> Best Regards \> \> Vinit \> \> \> On Aug 23, 10:46 am, Gaetano Borriello wrote: \> \>\> Vinit: \> \> \>\> Questions have a "relevancy" or "skip condition", in the negative. If \> \>\> the question is not "relevant" then it will be skipped. That can \> \>\> apply to as many questions as you like. So, you can have an entire \> \>\> branch of questions not appear if they share the same condition. \> \> \>\> Gaetano \> \> \>\> On Mon, Aug 22, 2011 at 9:52 PM, Vinit Sharma wrote: \> \> \>\> \> Thanks a lot for great help \> \> \>\> \> I just want to ask can i jump to the particular question on the basis \> \>\> \> of the answer and can i block more than one question on the answer of \> \>\> \> the question \> \> \>\> \> On Aug 20, 8:18 pm, Yaw Anokwa wrote: \> \>\> \>\> vinit, \> \> \>\> \>\> please check out the following resources. the design tutorial should \> \>\> \>\> be particularly useful. also, the widgets forms in the sample form \> \>\> \>\> repo has examples of conditional branching and required questions. \> \> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \> \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \> \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \> \> \>\> \>\> yaw \> \> \>\> \>\> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma wrote: \> \>\> \>\> \> Dear all, \> \>\> \>\> \> I want to know about the conditional jump like on the selecting particular \> \>\> \>\> \> answer jump to the specified question and lock the particular question and \> \>\> \>\> \> make some question mandatory or required . \> \>\> \>\> \> In the sample form i could only find about the skipping rules. \> \>\> \>\> \> Thanks in advance \> \>\> \>\> \> Best Regards \> \>\> \>\> \> Vinit \> \> \>\> \>\> \> -- \> \>\> \>\> \> 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 \> \> \> -- \> \> Post: opendatakit@googlegroups.com \> \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \> \> Options:http://groups.google.com/group/opendatakit?hl=en

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 23, 2011, 2:54pm UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/8 "2011-08-23T14:54:34Z")

</div>

in the tutorial i linked to earlier  
([https://bitbucket.org/javarosa/javarosa/wiki/buildxforms](https://bitbucket.org/javarosa/javarosa/wiki/buildxforms)), it  
explains that the syntax is standard xpath. the example that is used  
is as follows:

so, for your example, the following should work.  
\<bind nodeset="name" required="true()" relevant="../sex='f' and  
../interests='music' /\>

instead of the text match, if sex is a select, "selected(./sex, 'f')"  
would work in lieu of "../sex='f'".

if you are having problems, try using absolute paths (i.e., /data/sex)  
and ensuring that the values you check for (i.e. f and music) are  
correct.

> **···**
>
> On Tue, Aug 23, 2011 at 04:36, Vinit Sharma wrote: \> It would be great help if you can give some syntax help because i \> have seen all the sample forms and the link provided by you but i \> couldn't find relevant with and operation \> I have tried following .. \> \> 1\> sex='f'" )and( "../interests='music'")/\> \> 2\> sex='f'" )&&( "../interests='music'")/\> \> 3\> \> 4\> \> \> On Aug 23, 3:30 pm, Gaetano Borriello wrote: \>\> 1) yes \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \>\> \>\> 2) no, no jump, just relevancy \>\> \>\> \>\> \>\> \>\> \>\> \>\> \>\> On Tue, Aug 23, 2011 at 2:42 AM, Vinit Sharma wrote: \>\> \> Thanks for your quick reply \>\> \> i still have some query \>\> \>\> \> 1) can i use '&&' operation in "relavent" ? like \>\> \> \> \> "../age" \< 40 /\> \>\> \> where i want to use condition like if the gender is female(f) and her \>\> \> age is less than 40 than only this particular question should display \>\> \>\> \> 2) can i jump to the particular question say question number 10 on the \>\> \> answer of particular question \>\> \>\> \> Best Regards \>\> \> Vinit \>\> \>\> \> On Aug 23, 10:46 am, Gaetano Borriello wrote: \>\> \>\> Vinit: \>\> \>\> \>\> Questions have a "relevancy" or "skip condition", in the negative. If \>\> \>\> the question is not "relevant" then it will be skipped. That can \>\> \>\> apply to as many questions as you like. So, you can have an entire \>\> \>\> branch of questions not appear if they share the same condition. \>\> \>\> \>\> Gaetano \>\> \>\> \>\> On Mon, Aug 22, 2011 at 9:52 PM, Vinit Sharma wrote: \>\> \>\> \>\> \> Thanks a lot for great help \>\> \>\> \>\> \> I just want to ask can i jump to the particular question on the basis \>\> \>\> \> of the answer and can i block more than one question on the answer of \>\> \>\> \> the question \>\> \>\> \>\> \> On Aug 20, 8:18 pm, Yaw Anokwa wrote: \>\> \>\> \>\> vinit, \>\> \>\> \>\> \>\> please check out the following resources. the design tutorial should \>\> \>\> \>\> be particularly useful. also, the widgets forms in the sample form \>\> \>\> \>\> repo has examples of conditional branching and required questions. \>\> \>\> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \>\> \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \>\> \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \>\> \>\> \>\> \>\> yaw \>\> \>\> \>\> \>\> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma wrote: \>\> \>\> \>\> \> Dear all, \>\> \>\> \>\> \> I want to know about the conditional jump like on the selecting particular \>\> \>\> \>\> \> answer jump to the specified question and lock the particular question and \>\> \>\> \>\> \> make some question mandatory or required . \>\> \>\> \>\> \> In the sample form i could only find about the skipping rules. \>\> \>\> \>\> \> Thanks in advance \>\> \>\> \>\> \> Best Regards \>\> \>\> \>\> \> Vinit \>\> \>\> \>\> \>\> \> -- \>\> \>\> \>\> \> 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 \>\> \>\> \> -- \>\> \> 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 \>

---

<div class="post-metadata">

**Author:** ![Vinit\_Sharma](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@Vinit\_Sharma](https://forum.getodk.org/u/Vinit_Sharma)\
**Post date:** [August 24, 2011, 4:40am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/9 "2011-08-24T04:40:50Z")

</div>

Thank you very much yeah its working now earlier i was not passing  
absolute path....

I saw the odk viewer where in menu ' Go to Prompt' which is using  
FormHierarchyActivity we can jump to the particular question. But i  
want to know that can we jump to the particular question on the answer  
of the question as far as i got to know from the code is that all the  
time ODKVIEW is returning the view according to the question widget on  
the "SHOW NEXT VIEW " in FORM ENTRY ACTIVITY when the event type is  
question.

so can you tell me where i should pass form index for the next  
question as Mr.Borriello said jump is not possible during binding

> **···**
>
> On Aug 23, 7:54 pm, Yaw Anokwa wrote: \> in the tutorial i linked to earlier \> (https://bitbucket.org/javarosa/javarosa/wiki/buildxforms), it \> explains that the syntax is standard xpath. the example that is used \> is as follows: \> \> \> so, for your example, the following should work. \> would work in lieu of "../sex='f'". \> \> if you are having problems, try using absolute paths (i.e., /data/sex) \> and ensuring that the values you check for (i.e. f and music) are \> correct. \> \> On Tue, Aug 23, 2011 at 04:36, Vinit Sharma wrote: \> \> It would be great help if you can give some syntax help because i \> \> have seen all the sample forms and the link provided by you but i \> \> couldn't find relevant with and operation \> \> I have tried following .. \> \> \> 1\> \> sex='f'" )and( "../interests='music'")/\> \> \> 2\> \> sex='f'" )&&( "../interests='music'")/\> \> \> 3\> \> \> 4\> \> \> \> On Aug 23, 3:30 pm, Gaetano Borriello wrote: \> \>\> 1) yes \> \> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \> \> \>\> 2) no, no jump, just relevancy \> \> \>\> On Tue, Aug 23, 2011 at 2:42 AM, Vinit Sharma wrote: \> \>\> \> Thanks for your quick reply \> \>\> \> i still have some query \> \> \>\> \> 1) can i use '&&' operation in "relavent" ? like \> \>\> \> \>\> \> "../age" \< 40 /\> \> \>\> \> where i want to use condition like if the gender is female(f) and her \> \>\> \> age is less than 40 than only this particular question should display \> \> \>\> \> 2) can i jump to the particular question say question number 10 on the \> \>\> \> answer of particular question \> \> \>\> \> Best Regards \> \>\> \> Vinit \> \> \>\> \> On Aug 23, 10:46 am, Gaetano Borriello wrote: \> \>\> \>\> Vinit: \> \> \>\> \>\> Questions have a "relevancy" or "skip condition", in the negative. If \> \>\> \>\> the question is not "relevant" then it will be skipped. That can \> \>\> \>\> apply to as many questions as you like. So, you can have an entire \> \>\> \>\> branch of questions not appear if they share the same condition. \> \> \>\> \>\> Gaetano \> \> \>\> \>\> On Mon, Aug 22, 2011 at 9:52 PM, Vinit Sharma wrote: \> \> \>\> \>\> \> Thanks a lot for great help \> \> \>\> \>\> \> I just want to ask can i jump to the particular question on the basis \> \>\> \>\> \> of the answer and can i block more than one question on the answer of \> \>\> \>\> \> the question \> \> \>\> \>\> \> On Aug 20, 8:18 pm, Yaw Anokwa wrote: \> \>\> \>\> \>\> vinit, \> \> \>\> \>\> \>\> please check out the following resources. the design tutorial should \> \>\> \>\> \>\> be particularly useful. also, the widgets forms in the sample form \> \>\> \>\> \>\> repo has examples of conditional branching and required questions. \> \> \>\> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \> \>\> \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \> \>\> \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \> \> \>\> \>\> \>\> yaw \> \> \>\> \>\> \>\> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma wrote: \> \>\> \>\> \>\> \> Dear all, \> \>\> \>\> \>\> \> I want to know about the conditional jump like on the selecting particular \> \>\> \>\> \>\> \> answer jump to the specified question and lock the particular question and \> \>\> \>\> \>\> \> make some question mandatory or required . \> \>\> \>\> \>\> \> In the sample form i could only find about the skipping rules. \> \>\> \>\> \>\> \> Thanks in advance \> \>\> \>\> \>\> \> Best Regards \> \>\> \>\> \>\> \> Vinit \> \> \>\> \>\> \>\> \> -- \> \>\> \>\> \>\> \> 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 \> \> \>\> \> -- \> \>\> \> 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

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 24, 2011, 7:45am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/10 "2011-08-24T07:45:28Z")

</div>

vinit,

jumping to questions is not supported in xforms and it will not be fun  
to bypass this behavior. the go to prompt option you describe can only  
jump as far as the form relevancy allows.

as far as where you should pass indexes, we don't provide code-level  
support. what i can say is that form indexes are particularly  
unpleasant to work with...

yaw

> **···**
>
> On Wed, Aug 24, 2011 at 06:40, Vinit Sharma wrote: \> Thank you very much yeah its working now earlier i was not passing \> absolute path.... \> \> I saw the odk viewer where in menu ' Go to Prompt' which is using \> FormHierarchyActivity we can jump to the particular question. But i \> want to know that can we jump to the particular question on the answer \> of the question as far as i got to know from the code is that all the \> time ODKVIEW is returning the view according to the question widget on \> the "SHOW NEXT VIEW " in FORM ENTRY ACTIVITY when the event type is \> question. \> \> so can you tell me where i should pass form index for the next \> question as Mr.Borriello said jump is not possible during binding \> \> \> On Aug 23, 7:54 pm, Yaw Anokwa wrote: \>\> in the tutorial i linked to earlier \>\> (https://bitbucket.org/javarosa/javarosa/wiki/buildxforms), it \>\> explains that the syntax is standard xpath. the example that is used \>\> is as follows: \>\> \>\> \>\> so, for your example, the following should work. \>\> \> would work in lieu of "../sex='f'". \>\> \>\> if you are having problems, try using absolute paths (i.e., /data/sex) \>\> and ensuring that the values you check for (i.e. f and music) are \>\> correct. \>\> \>\> On Tue, Aug 23, 2011 at 04:36, Vinit Sharma wrote: \>\> \> It would be great help if you can give some syntax help because i \>\> \> have seen all the sample forms and the link provided by you but i \>\> \> couldn't find relevant with and operation \>\> \> I have tried following .. \>\> \>\> \> 1\> \> \> sex='f'" )and( "../interests='music'")/\> \>\> \> 2\> \> \> sex='f'" )&&( "../interests='music'")/\> \>\> \> 3\> \>\> \> 4\> \>\> \>\> \> On Aug 23, 3:30 pm, Gaetano Borriello wrote: \>\> \>\> 1) yes \>\> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \>\> \>\> \>\> 2) no, no jump, just relevancy \>\> \>\> \>\> On Tue, Aug 23, 2011 at 2:42 AM, Vinit Sharma wrote: \>\> \>\> \> Thanks for your quick reply \>\> \>\> \> i still have some query \>\> \>\> \>\> \> 1) can i use '&&' operation in "relavent" ? like \>\> \>\> \> \> \>\> \> "../age" \< 40 /\> \>\> \>\> \> where i want to use condition like if the gender is female(f) and her \>\> \>\> \> age is less than 40 than only this particular question should display \>\> \>\> \>\> \> 2) can i jump to the particular question say question number 10 on the \>\> \>\> \> answer of particular question \>\> \>\> \>\> \> Best Regards \>\> \>\> \> Vinit \>\> \>\> \>\> \> On Aug 23, 10:46 am, Gaetano Borriello wrote: \>\> \>\> \>\> Vinit: \>\> \>\> \>\> \>\> Questions have a "relevancy" or "skip condition", in the negative. If \>\> \>\> \>\> the question is not "relevant" then it will be skipped. That can \>\> \>\> \>\> apply to as many questions as you like. So, you can have an entire \>\> \>\> \>\> branch of questions not appear if they share the same condition. \>\> \>\> \>\> \>\> Gaetano \>\> \>\> \>\> \>\> On Mon, Aug 22, 2011 at 9:52 PM, Vinit Sharma wrote: \>\> \>\> \>\> \>\> \> Thanks a lot for great help \>\> \>\> \>\> \>\> \> I just want to ask can i jump to the particular question on the basis \>\> \>\> \>\> \> of the answer and can i block more than one question on the answer of \>\> \>\> \>\> \> the question \>\> \>\> \>\> \>\> \> On Aug 20, 8:18 pm, Yaw Anokwa wrote: \>\> \>\> \>\> \>\> vinit, \>\> \>\> \>\> \>\> \>\> please check out the following resources. the design tutorial should \>\> \>\> \>\> \>\> be particularly useful. also, the widgets forms in the sample form \>\> \>\> \>\> \>\> repo has examples of conditional branching and required questions. \>\> \>\> \>\> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \>\> \>\> \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \>\> \>\> \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \>\> \>\> \>\> \>\> \>\> yaw \>\> \>\> \>\> \>\> \>\> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma wrote: \>\> \>\> \>\> \>\> \> Dear all, \>\> \>\> \>\> \>\> \> I want to know about the conditional jump like on the selecting particular \>\> \>\> \>\> \>\> \> answer jump to the specified question and lock the particular question and \>\> \>\> \>\> \>\> \> make some question mandatory or required . \>\> \>\> \>\> \>\> \> In the sample form i could only find about the skipping rules. \>\> \>\> \>\> \>\> \> Thanks in advance \>\> \>\> \>\> \>\> \> Best Regards \>\> \>\> \>\> \>\> \> Vinit \>\> \>\> \>\> \>\> \>\> \> -- \>\> \>\> \>\> \>\> \> 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 \>\> \>\> \>\> \> -- \>\> \>\> \> 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 \> \> -- \> Post: opendatakit@googlegroups.com \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \> Options: http://groups.google.com/group/opendatakit?hl=en \>

---

<div class="post-metadata">

**Author:** ![Vinit\_Sharma](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@Vinit\_Sharma](https://forum.getodk.org/u/Vinit_Sharma)\
**Post date:** [August 24, 2011, 8:38am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/11 "2011-08-24T08:38:52Z")

</div>

I am really thankful to you guys ..  
Actually in my college major project ,my guide want me to do  
conditional jump so i was stuck to that issue.  
He just wants to jump to the particular question on the basis of the  
answer  
any help would be appreciated

> **···**
>
> On Aug 24, 12:45 pm, Yaw Anokwa wrote: \> vinit, \> \> jumping to questions is not supported in xforms and it will not be fun \> to bypass this behavior. the go to prompt option you describe can only \> jump as far as the form relevancy allows. \> \> as far as where you should pass indexes, we don't provide code-level \> support. what i can say is that form indexes are particularly \> unpleasant to work with... \> \> yaw \> \> On Wed, Aug 24, 2011 at 06:40, Vinit Sharma wrote: \> \> Thank you very much yeah its working now earlier i was not passing \> \> absolute path.... \> \> \> I saw the odk viewer where in menu ' Go to Prompt' which is using \> \> FormHierarchyActivity we can jump to the particular question. But i \> \> want to know that can we jump to the particular question on the answer \> \> of the question as far as i got to know from the code is that all the \> \> time ODKVIEW is returning the view according to the question widget on \> \> the "SHOW NEXT VIEW " in FORM ENTRY ACTIVITY when the event type is \> \> question. \> \> \> so can you tell me where i should pass form index for the next \> \> question as Mr.Borriello said jump is not possible during binding \> \> \> On Aug 23, 7:54 pm, Yaw Anokwa wrote: \> \>\> in the tutorial i linked to earlier \> \>\> (https://bitbucket.org/javarosa/javarosa/wiki/buildxforms), it \> \>\> explains that the syntax is standard xpath. the example that is used \> \>\> is as follows: \> \>\> \> \> \>\> so, for your example, the following should work. \> \>\> \>\> would work in lieu of "../sex='f'". \> \> \>\> if you are having problems, try using absolute paths (i.e., /data/sex) \> \>\> and ensuring that the values you check for (i.e. f and music) are \> \>\> correct. \> \> \>\> On Tue, Aug 23, 2011 at 04:36, Vinit Sharma wrote: \> \>\> \> It would be great help if you can give some syntax help because i \> \>\> \> have seen all the sample forms and the link provided by you but i \> \>\> \> couldn't find relevant with and operation \> \>\> \> I have tried following .. \> \> \>\> \> 1\> \>\> \> sex='f'" )and( "../interests='music'")/\> \> \>\> \> 2\> \>\> \> sex='f'" )&&( "../interests='music'")/\> \> \>\> \> 3\> \> \>\> \> 4\> \> \> \>\> \> On Aug 23, 3:30 pm, Gaetano Borriello wrote: \> \>\> \>\> 1) yes \> \> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \> \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \> \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \> \> \>\> \>\> 2) no, no jump, just relevancy \> \> \>\> \>\> On Tue, Aug 23, 2011 at 2:42 AM, Vinit Sharma wrote: \> \>\> \>\> \> Thanks for your quick reply \> \>\> \>\> \> i still have some query \> \> \>\> \>\> \> 1) can i use '&&' operation in "relavent" ? like \> \>\> \>\> \> \>\> \>\> \> "../age" \< 40 /\> \> \>\> \>\> \> where i want to use condition like if the gender is female(f) and her \> \>\> \>\> \> age is less than 40 than only this particular question should display \> \> \>\> \>\> \> 2) can i jump to the particular question say question number 10 on the \> \>\> \>\> \> answer of particular question \> \> \>\> \>\> \> Best Regards \> \>\> \>\> \> Vinit \> \> \>\> \>\> \> On Aug 23, 10:46 am, Gaetano Borriello wrote: \> \>\> \>\> \>\> Vinit: \> \> \>\> \>\> \>\> Questions have a "relevancy" or "skip condition", in the negative. If \> \>\> \>\> \>\> the question is not "relevant" then it will be skipped. That can \> \>\> \>\> \>\> apply to as many questions as you like. So, you can have an entire \> \>\> \>\> \>\> branch of questions not appear if they share the same condition. \> \> \>\> \>\> \>\> Gaetano \> \> \>\> \>\> \>\> On Mon, Aug 22, 2011 at 9:52 PM, Vinit Sharma wrote: \> \> \>\> \>\> \>\> \> Thanks a lot for great help \> \> \>\> \>\> \>\> \> I just want to ask can i jump to the particular question on the basis \> \>\> \>\> \>\> \> of the answer and can i block more than one question on the answer of \> \>\> \>\> \>\> \> the question \> \> \>\> \>\> \>\> \> On Aug 20, 8:18 pm, Yaw Anokwa wrote: \> \>\> \>\> \>\> \>\> vinit, \> \> \>\> \>\> \>\> \>\> please check out the following resources. the design tutorial should \> \>\> \>\> \>\> \>\> be particularly useful. also, the widgets forms in the sample form \> \>\> \>\> \>\> \>\> repo has examples of conditional branching and required questions. \> \> \>\> \>\> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \> \>\> \>\> \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \> \>\> \>\> \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \> \> \>\> \>\> \>\> \>\> yaw \> \> \>\> \>\> \>\> \>\> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma wrote: \> \>\> \>\> \>\> \>\> \> Dear all, \> \>\> \>\> \>\> \>\> \> I want to know about the conditional jump like on the selecting particular \> \>\> \>\> \>\> \>\> \> answer jump to the specified question and lock the particular question and \> \>\> \>\> \>\> \>\> \> make some question mandatory or required . \> \>\> \>\> \>\> \>\> \> In the sample form i could only find about the skipping rules. \> \>\> \>\> \>\> \>\> \> Thanks in advance \> \>\> \>\> \>\> \>\> \> Best Regards \> \>\> \>\> \>\> \>\> \> Vinit \> \> \>\> \>\> \>\> \>\> \> -- \> \>\> \>\> \>\> \>\> \> 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 \> \> \>\> \>\> \> -- \> \>\> \>\> \> 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 \> \> \> -- \> \> Post: opendatakit@googlegroups.com \> \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \> \> Options:http://groups.google.com/group/opendatakit?hl=en

---

<div class="post-metadata">

**Author:** ![Vinit\_Sharma](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@Vinit\_Sharma](https://forum.getodk.org/u/Vinit_Sharma)\
**Post date:** [August 24, 2011, 8:45am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/12 "2011-08-24T08:45:21Z")

</div>

one more thing can i jump to particular group if not the question??

> **···**
>
> On Aug 24, 12:45 pm, Yaw Anokwa wrote: \> vinit, \> \> jumping to questions is not supported in xforms and it will not be fun \> to bypass this behavior. the go to prompt option you describe can only \> jump as far as the form relevancy allows. \> \> as far as where you should pass indexes, we don't provide code-level \> support. what i can say is that form indexes are particularly \> unpleasant to work with... \> \> yaw \> \> On Wed, Aug 24, 2011 at 06:40, Vinit Sharma wrote: \> \> Thank you very much yeah its working now earlier i was not passing \> \> absolute path.... \> \> \> I saw the odk viewer where in menu ' Go to Prompt' which is using \> \> FormHierarchyActivity we can jump to the particular question. But i \> \> want to know that can we jump to the particular question on the answer \> \> of the question as far as i got to know from the code is that all the \> \> time ODKVIEW is returning the view according to the question widget on \> \> the "SHOW NEXT VIEW " in FORM ENTRY ACTIVITY when the event type is \> \> question. \> \> \> so can you tell me where i should pass form index for the next \> \> question as Mr.Borriello said jump is not possible during binding \> \> \> On Aug 23, 7:54 pm, Yaw Anokwa wrote: \> \>\> in the tutorial i linked to earlier \> \>\> (https://bitbucket.org/javarosa/javarosa/wiki/buildxforms), it \> \>\> explains that the syntax is standard xpath. the example that is used \> \>\> is as follows: \> \>\> \> \> \>\> so, for your example, the following should work. \> \>\> \>\> would work in lieu of "../sex='f'". \> \> \>\> if you are having problems, try using absolute paths (i.e., /data/sex) \> \>\> and ensuring that the values you check for (i.e. f and music) are \> \>\> correct. \> \> \>\> On Tue, Aug 23, 2011 at 04:36, Vinit Sharma wrote: \> \>\> \> It would be great help if you can give some syntax help because i \> \>\> \> have seen all the sample forms and the link provided by you but i \> \>\> \> couldn't find relevant with and operation \> \>\> \> I have tried following .. \> \> \>\> \> 1\> \>\> \> sex='f'" )and( "../interests='music'")/\> \> \>\> \> 2\> \>\> \> sex='f'" )&&( "../interests='music'")/\> \> \>\> \> 3\> \> \>\> \> 4\> \> \> \>\> \> On Aug 23, 3:30 pm, Gaetano Borriello wrote: \> \>\> \>\> 1) yes \> \> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \> \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \> \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \> \> \>\> \>\> 2) no, no jump, just relevancy \> \> \>\> \>\> On Tue, Aug 23, 2011 at 2:42 AM, Vinit Sharma wrote: \> \>\> \>\> \> Thanks for your quick reply \> \>\> \>\> \> i still have some query \> \> \>\> \>\> \> 1) can i use '&&' operation in "relavent" ? like \> \>\> \>\> \> \>\> \>\> \> "../age" \< 40 /\> \> \>\> \>\> \> where i want to use condition like if the gender is female(f) and her \> \>\> \>\> \> age is less than 40 than only this particular question should display \> \> \>\> \>\> \> 2) can i jump to the particular question say question number 10 on the \> \>\> \>\> \> answer of particular question \> \> \>\> \>\> \> Best Regards \> \>\> \>\> \> Vinit \> \> \>\> \>\> \> On Aug 23, 10:46 am, Gaetano Borriello wrote: \> \>\> \>\> \>\> Vinit: \> \> \>\> \>\> \>\> Questions have a "relevancy" or "skip condition", in the negative. If \> \>\> \>\> \>\> the question is not "relevant" then it will be skipped. That can \> \>\> \>\> \>\> apply to as many questions as you like. So, you can have an entire \> \>\> \>\> \>\> branch of questions not appear if they share the same condition. \> \> \>\> \>\> \>\> Gaetano \> \> \>\> \>\> \>\> On Mon, Aug 22, 2011 at 9:52 PM, Vinit Sharma wrote: \> \> \>\> \>\> \>\> \> Thanks a lot for great help \> \> \>\> \>\> \>\> \> I just want to ask can i jump to the particular question on the basis \> \>\> \>\> \>\> \> of the answer and can i block more than one question on the answer of \> \>\> \>\> \>\> \> the question \> \> \>\> \>\> \>\> \> On Aug 20, 8:18 pm, Yaw Anokwa wrote: \> \>\> \>\> \>\> \>\> vinit, \> \> \>\> \>\> \>\> \>\> please check out the following resources. the design tutorial should \> \>\> \>\> \>\> \>\> be particularly useful. also, the widgets forms in the sample form \> \>\> \>\> \>\> \>\> repo has examples of conditional branching and required questions. \> \> \>\> \>\> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \> \>\> \>\> \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \> \>\> \>\> \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \> \> \>\> \>\> \>\> \>\> yaw \> \> \>\> \>\> \>\> \>\> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma wrote: \> \>\> \>\> \>\> \>\> \> Dear all, \> \>\> \>\> \>\> \>\> \> I want to know about the conditional jump like on the selecting particular \> \>\> \>\> \>\> \>\> \> answer jump to the specified question and lock the particular question and \> \>\> \>\> \>\> \>\> \> make some question mandatory or required . \> \>\> \>\> \>\> \>\> \> In the sample form i could only find about the skipping rules. \> \>\> \>\> \>\> \>\> \> Thanks in advance \> \>\> \>\> \>\> \>\> \> Best Regards \> \>\> \>\> \>\> \>\> \> Vinit \> \> \>\> \>\> \>\> \>\> \> -- \> \>\> \>\> \>\> \>\> \> 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 \> \> \>\> \>\> \> -- \> \>\> \>\> \> 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 \> \> \> -- \> \> Post: opendatakit@googlegroups.com \> \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \> \> Options:http://groups.google.com/group/opendatakit?hl=en

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 24, 2011, 8:05pm UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/13 "2011-08-24T20:05:52Z")

</div>

again, there is no concept of jumping in xforms. you can make a group  
relevant based on previous answer. for example, you can have a  
pregnancy group of questions that appear only when  
gender is female.

> **···**
>
> On Wed, Aug 24, 2011 at 10:45, Vinit Sharma wrote: \> \> one more thing can i jump to particular group if not the question?? \> \> On Aug 24, 12:45 pm, Yaw Anokwa wrote: \>\> vinit, \>\> \>\> jumping to questions is not supported in xforms and it will not be fun \>\> to bypass this behavior. the go to prompt option you describe can only \>\> jump as far as the form relevancy allows. \>\> \>\> as far as where you should pass indexes, we don't provide code-level \>\> support. what i can say is that form indexes are particularly \>\> unpleasant to work with... \>\> \>\> yaw \>\> \>\> On Wed, Aug 24, 2011 at 06:40, Vinit Sharma wrote: \>\> \> Thank you very much yeah its working now earlier i was not passing \>\> \> absolute path.... \>\> \>\> \> I saw the odk viewer where in menu ' Go to Prompt' which is using \>\> \> FormHierarchyActivity we can jump to the particular question. But i \>\> \> want to know that can we jump to the particular question on the answer \>\> \> of the question as far as i got to know from the code is that all the \>\> \> time ODKVIEW is returning the view according to the question widget on \>\> \> the "SHOW NEXT VIEW " in FORM ENTRY ACTIVITY when the event type is \>\> \> question. \>\> \>\> \> so can you tell me where i should pass form index for the next \>\> \> question as Mr.Borriello said jump is not possible during binding \>\> \>\> \> On Aug 23, 7:54 pm, Yaw Anokwa wrote: \>\> \>\> in the tutorial i linked to earlier \>\> \>\> (https://bitbucket.org/javarosa/javarosa/wiki/buildxforms), it \>\> \>\> explains that the syntax is standard xpath. the example that is used \>\> \>\> is as follows: \>\> \>\> \>\> \>\> \>\> so, for your example, the following should work. \>\> \>\> \> \>\> would work in lieu of "../sex='f'". \>\> \>\> \>\> if you are having problems, try using absolute paths (i.e., /data/sex) \>\> \>\> and ensuring that the values you check for (i.e. f and music) are \>\> \>\> correct. \>\> \>\> \>\> On Tue, Aug 23, 2011 at 04:36, Vinit Sharma wrote: \>\> \>\> \> It would be great help if you can give some syntax help because i \>\> \>\> \> have seen all the sample forms and the link provided by you but i \>\> \>\> \> couldn't find relevant with and operation \>\> \>\> \> I have tried following .. \>\> \>\> \>\> \> 1\> \> \>\> \> sex='f'" )and( "../interests='music'")/\> \>\> \>\> \> 2\> \> \>\> \> sex='f'" )&&( "../interests='music'")/\> \>\> \>\> \> 3\> \>\> \>\> \> 4\> \>\> \>\> \>\> \> On Aug 23, 3:30 pm, Gaetano Borriello wrote: \>\> \>\> \>\> 1) yes \>\> \>\> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \>\> \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \>\> \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \>\> \>\> \>\> \>\> 2) no, no jump, just relevancy \>\> \>\> \>\> \>\> On Tue, Aug 23, 2011 at 2:42 AM, Vinit Sharma wrote: \>\> \>\> \>\> \> Thanks for your quick reply \>\> \>\> \>\> \> i still have some query \>\> \>\> \>\> \>\> \> 1) can i use '&&' operation in "relavent" ? like \>\> \>\> \>\> \> \> \>\> \>\> \> "../age" \< 40 /\> \>\> \>\> \>\> \> where i want to use condition like if the gender is female(f) and her \>\> \>\> \>\> \> age is less than 40 than only this particular question should display \>\> \>\> \>\> \>\> \> 2) can i jump to the particular question say question number 10 on the \>\> \>\> \>\> \> answer of particular question \>\> \>\> \>\> \>\> \> Best Regards \>\> \>\> \>\> \> Vinit \>\> \>\> \>\> \>\> \> On Aug 23, 10:46 am, Gaetano Borriello wrote: \>\> \>\> \>\> \>\> Vinit: \>\> \>\> \>\> \>\> \>\> Questions have a "relevancy" or "skip condition", in the negative. If \>\> \>\> \>\> \>\> the question is not "relevant" then it will be skipped. That can \>\> \>\> \>\> \>\> apply to as many questions as you like. So, you can have an entire \>\> \>\> \>\> \>\> branch of questions not appear if they share the same condition. \>\> \>\> \>\> \>\> \>\> Gaetano \>\> \>\> \>\> \>\> \>\> On Mon, Aug 22, 2011 at 9:52 PM, Vinit Sharma wrote: \>\> \>\> \>\> \>\> \>\> \> Thanks a lot for great help \>\> \>\> \>\> \>\> \>\> \> I just want to ask can i jump to the particular question on the basis \>\> \>\> \>\> \>\> \> of the answer and can i block more than one question on the answer of \>\> \>\> \>\> \>\> \> the question \>\> \>\> \>\> \>\> \>\> \> On Aug 20, 8:18 pm, Yaw Anokwa wrote: \>\> \>\> \>\> \>\> \>\> vinit, \>\> \>\> \>\> \>\> \>\> \>\> please check out the following resources. the design tutorial should \>\> \>\> \>\> \>\> \>\> be particularly useful. also, the widgets forms in the sample form \>\> \>\> \>\> \>\> \>\> repo has examples of conditional branching and required questions. \>\> \>\> \>\> \>\> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \>\> \>\> \>\> \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \>\> \>\> \>\> \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \>\> \>\> \>\> \>\> \>\> \>\> yaw \>\> \>\> \>\> \>\> \>\> \>\> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma wrote: \>\> \>\> \>\> \>\> \>\> \> Dear all, \>\> \>\> \>\> \>\> \>\> \> I want to know about the conditional jump like on the selecting particular \>\> \>\> \>\> \>\> \>\> \> answer jump to the specified question and lock the particular question and \>\> \>\> \>\> \>\> \>\> \> make some question mandatory or required . \>\> \>\> \>\> \>\> \>\> \> In the sample form i could only find about the skipping rules. \>\> \>\> \>\> \>\> \>\> \> Thanks in advance \>\> \>\> \>\> \>\> \>\> \> Best Regards \>\> \>\> \>\> \>\> \>\> \> Vinit \>\> \>\> \>\> \>\> \>\> \>\> \> -- \>\> \>\> \>\> \>\> \>\> \> 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 \>\> \>\> \>\> \>\> \> -- \>\> \>\> \>\> \> 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 \>\> \>\> \> -- \>\> \> 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 \>

---

<div class="post-metadata">

**Author:** ![Vinit\_Sharma](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@Vinit\_Sharma](https://forum.getodk.org/u/Vinit_Sharma)\
**Post date:** [August 25, 2011, 5:05am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/14 "2011-08-25T05:05:15Z")

</div>

Ok thanks so i came to know that i can't jump to the particular  
question .  
one more thing i want to know that can i use table like if xform has  
table of radio buttons (multiple rows having control horizontally )so  
can the java rosa parse it

> **···**
>
> On Aug 25, 1:05 am, Yaw Anokwa wrote: \> again, there is no concept of jumping in xforms. you can make a group \> relevant based on previous answer. for example, you can have a \> pregnancy group of questions that appear only when \> gender is female. \> \> On Wed, Aug 24, 2011 at 10:45, Vinit Sharma wrote: \> \> \> one more thing can i jump to particular group if not the question?? \> \> \> On Aug 24, 12:45 pm, Yaw Anokwa wrote: \> \>\> vinit, \> \> \>\> jumping to questions is not supported in xforms and it will not be fun \> \>\> to bypass this behavior. the go to prompt option you describe can only \> \>\> jump as far as the form relevancy allows. \> \> \>\> as far as where you should pass indexes, we don't provide code-level \> \>\> support. what i can say is that form indexes are particularly \> \>\> unpleasant to work with... \> \> \>\> yaw \> \> \>\> On Wed, Aug 24, 2011 at 06:40, Vinit Sharma wrote: \> \>\> \> Thank you very much yeah its working now earlier i was not passing \> \>\> \> absolute path.... \> \> \>\> \> I saw the odk viewer where in menu ' Go to Prompt' which is using \> \>\> \> FormHierarchyActivity we can jump to the particular question. But i \> \>\> \> want to know that can we jump to the particular question on the answer \> \>\> \> of the question as far as i got to know from the code is that all the \> \>\> \> time ODKVIEW is returning the view according to the question widget on \> \>\> \> the "SHOW NEXT VIEW " in FORM ENTRY ACTIVITY when the event type is \> \>\> \> question. \> \> \>\> \> so can you tell me where i should pass form index for the next \> \>\> \> question as Mr.Borriello said jump is not possible during binding \> \> \>\> \> On Aug 23, 7:54 pm, Yaw Anokwa wrote: \> \>\> \>\> in the tutorial i linked to earlier \> \>\> \>\> (https://bitbucket.org/javarosa/javarosa/wiki/buildxforms), it \> \>\> \>\> explains that the syntax is standard xpath. the example that is used \> \>\> \>\> is as follows: \> \>\> \>\> \> \> \>\> \>\> so, for your example, the following should work. \> \>\> \>\> \>\> \>\> would work in lieu of "../sex='f'". \> \> \>\> \>\> if you are having problems, try using absolute paths (i.e., /data/sex) \> \>\> \>\> and ensuring that the values you check for (i.e. f and music) are \> \>\> \>\> correct. \> \> \>\> \>\> On Tue, Aug 23, 2011 at 04:36, Vinit Sharma wrote: \> \>\> \>\> \> It would be great help if you can give some syntax help because i \> \>\> \>\> \> have seen all the sample forms and the link provided by you but i \> \>\> \>\> \> couldn't find relevant with and operation \> \>\> \>\> \> I have tried following .. \> \> \>\> \>\> \> 1\> \>\> \>\> \> sex='f'" )and( "../interests='music'")/\> \> \>\> \>\> \> 2\> \>\> \>\> \> sex='f'" )&&( "../interests='music'")/\> \> \>\> \>\> \> 3\> \> \>\> \>\> \> 4\> \> \> \>\> \>\> \> On Aug 23, 3:30 pm, Gaetano Borriello wrote: \> \>\> \>\> \>\> 1) yes \> \> \>\> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \> \>\> \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \> \>\> \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \> \> \>\> \>\> \>\> 2) no, no jump, just relevancy \> \> \>\> \>\> \>\> On Tue, Aug 23, 2011 at 2:42 AM, Vinit Sharma wrote: \> \>\> \>\> \>\> \> Thanks for your quick reply \> \>\> \>\> \>\> \> i still have some query \> \> \>\> \>\> \>\> \> 1) can i use '&&' operation in "relavent" ? like \> \>\> \>\> \>\> \> \>\> \>\> \>\> \> "../age" \< 40 /\> \> \>\> \>\> \>\> \> where i want to use condition like if the gender is female(f) and her \> \>\> \>\> \>\> \> age is less than 40 than only this particular question should display \> \> \>\> \>\> \>\> \> 2) can i jump to the particular question say question number 10 on the \> \>\> \>\> \>\> \> answer of particular question \> \> \>\> \>\> \>\> \> Best Regards \> \>\> \>\> \>\> \> Vinit \> \> \>\> \>\> \>\> \> On Aug 23, 10:46 am, Gaetano Borriello wrote: \> \>\> \>\> \>\> \>\> Vinit: \> \> \>\> \>\> \>\> \>\> Questions have a "relevancy" or "skip condition", in the negative. If \> \>\> \>\> \>\> \>\> the question is not "relevant" then it will be skipped. That can \> \>\> \>\> \>\> \>\> apply to as many questions as you like. So, you can have an entire \> \>\> \>\> \>\> \>\> branch of questions not appear if they share the same condition. \> \> \>\> \>\> \>\> \>\> Gaetano \> \> \>\> \>\> \>\> \>\> On Mon, Aug 22, 2011 at 9:52 PM, Vinit Sharma wrote: \> \> \>\> \>\> \>\> \>\> \> Thanks a lot for great help \> \> \>\> \>\> \>\> \>\> \> I just want to ask can i jump to the particular question on the basis \> \>\> \>\> \>\> \>\> \> of the answer and can i block more than one question on the answer of \> \>\> \>\> \>\> \>\> \> the question \> \> \>\> \>\> \>\> \>\> \> On Aug 20, 8:18 pm, Yaw Anokwa wrote: \> \>\> \>\> \>\> \>\> \>\> vinit, \> \> \>\> \>\> \>\> \>\> \>\> please check out the following resources. the design tutorial should \> \>\> \>\> \>\> \>\> \>\> be particularly useful. also, the widgets forms in the sample form \> \>\> \>\> \>\> \>\> \>\> repo has examples of conditional branching and required questions. \> \> \>\> \>\> \>\> \>\> \>\> form guidelines:http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines \> \>\> \>\> \>\> \>\> \>\> form design tutorial:https://bitbucket.org/javarosa/javarosa/wiki/buildxforms \> \>\> \>\> \>\> \>\> \>\> sample forms:http://code.google.com/p/opendatakit/source/browse/?repo=forms \> \> \>\> \>\> \>\> \>\> \>\> yaw \> \> \>\> \>\> \>\> \>\> \>\> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma wrote: \> \>\> \>\> \>\> \>\> \>\> \> Dear all, \> \>\> \>\> \>\> \>\> \>\> \> I want to know about the conditional jump like on the selecting particular \> \>\> \>\> \>\> \>\> \>\> \> answer jump to the specified question and lock the particular question and \> \>\> \>\> \>\> \>\> \>\> \> make some question mandatory or required . \> \>\> \>\> \>\> \>\> \>\> \> In the sample form i could only find about the skipping rules. \> \>\> \>\> \>\> \>\> \>\> \> Thanks in advance \> \>\> \>\> \>\> \>\> \>\> \> Best Regards \> \>\> \>\> \>\> \>\> \>\> \> Vinit \> \> \>\> \>\> \>\> \>\> \>\> \> -- \> \>\> \>\> \>\> \>\> \>\> \> 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 \> \> \>\> \>\> \>\> \> -- \> \>\> \>\> \>\> \> 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 \> \> \>\> \> -- \> \>\> \> 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

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 25, 2011, 5:06pm UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/15 "2011-08-25T17:06:12Z")

</div>

we have an upcoming widget in 1.1.7 which gives you yes/no/maybe radio  
buttons in a list (see  
[http://opendatakit.org/wp-content/uploads/2011/07/plotStatus.png](http://opendatakit.org/wp-content/uploads/2011/07/plotStatus.png)). that's  
about as close as we get to matrixes.

> Ok thanks so i came to know that i can't jump to the particular  
> question .  
> one more thing i want to know that can i use table like if xform has  
> table of radio buttons (multiple rows having control horizontally )so  
> can the java rosa parse it
> 
> > again, there is no concept of jumping in xforms. you can make a group  
> > relevant based on previous answer. for example, you can have a  
> > pregnancy group of questions that appear only when  
> > gender is female.
> > 
> > > one more thing can i jump to particular group if not the question??
> > 
> > > > vinit,
> > 
> > > > jumping to questions is not supported in xforms and it will not be fun  
> > > > to bypass this behavior. the go to prompt option you describe can only  
> > > > jump as far as the form relevancy allows.
> > 
> > > > as far as where you should pass indexes, we don't provide code-level  
> > > > support. what i can say is that form indexes are particularly  
> > > > unpleasant to work with...
> > 
> > > > yaw
> > 
> > > > > Thank you very much yeah its working now earlier i was not passing  
> > > > > absolute path....
> > 
> > > > > I saw the odk viewer where in menu ' Go to Prompt' which is using  
> > > > > FormHierarchyActivity we can jump to the particular question. But i  
> > > > > want to know that can we jump to the particular question on the  
> > > > > answer  
> > > > > of the question as far as i got to know from the code is that all  
> > > > > the  
> > > > > time ODKVIEW is returning the view according to the question widget  
> > > > > on  
> > > > > the "SHOW NEXT VIEW " in FORM ENTRY ACTIVITY when the event type is  
> > > > > question.
> > 
> > > > > so can you tell me where i should pass form index for the next  
> > > > > question as Mr.Borriello said jump is not possible during binding
> > 
> > > > > > in the tutorial i linked to earlier  
> > > > > > ([https://bitbucket.org/javarosa/javarosa/wiki/buildxforms](https://bitbucket.org/javarosa/javarosa/wiki/buildxforms)), it  
> > > > > > explains that the syntax is standard xpath. the example that is  
> > > > > > used  
> > > > > > is as follows:
> > 
> > > > > > so, for your example, the following should work.  
> > > > > > \<bind nodeset="name" required="true()" relevant="../sex='f' and  
> > > > > > ../interests='music' /\>
> > 
> > > > > > instead of the text match, if sex is a select, "selected(./sex,  
> > > > > > 'f')"  
> > > > > > would work in lieu of "../sex='f'".
> > 
> > > > > > if you are having problems, try using absolute paths (i.e.,  
> > > > > > /data/sex)  
> > > > > > and ensuring that the values you check for (i.e. f and music) are  
> > > > > > correct.
> > 
> > > > > > > It would be great help if you can give some syntax help because  
> > > > > > > i  
> > > > > > > have seen all the sample forms and the link provided by you but i  
> > > > > > > couldn't find relevant with and operation  
> > > > > > > I have tried following ..
> > 
> > > > > > > 1\> \<bind nodeset="name" required="true()" relevant= ("../  
> > > > > > > sex='f'" )and( "../interests='music'")/\>  
> > > > > > > 2\> \<bind nodeset="name" required="true()" relevant= ("../  
> > > > > > > sex='f'" )&&( "../interests='music'")/\>  
> > > > > > > 3\> \<bind nodeset="name" required="true()" relevant=  
> > > > > > > "selected(../  
> > > > > > > interests, 'music')" and "selected(../sex, 'f')" /\>  
> > > > > > > 4\> \<bind nodeset="name" required="true()" relevant=  
> > > > > > > "selected(../  
> > > > > > > interests, 'music')" &&"selected(../sex, 'f')" /\>
> > 
> > > > > > > > 1. yes
> > 
> > > > > > > > form guidelines:  
> > > > > > > > [http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines](http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines)  
> > > > > > > > form design tutorial:  
> > > > > > > > [https://bitbucket.org/javarosa/javarosa/wiki/buildxforms](https://bitbucket.org/javarosa/javarosa/wiki/buildxforms)  
> > > > > > > > sample forms:  
> > > > > > > > [http://code.google.com/p/opendatakit/source/browse/?repo=forms](http://code.google.com/p/opendatakit/source/browse/?repo=forms)
> > 
> > > > > > > > 1. no, no jump, just relevancy
> > 
> > > > > > > > > Thanks for your quick reply  
> > > > > > > > > i still have some query
> > 
> > > > > > > > > 1. can i use '&&' operation in "relavent" ? like  
> > > > > > > > > \<bind nodeset="pregnant" required="true()"  
> > > > > > > > > relevant="../sex='f'" &&  
> > > > > > > > > "../age" \< 40 /\>  
> > > > > > > > > where i want to use condition like if the gender is female(f)  
> > > > > > > > > and her  
> > > > > > > > > age is less than 40 than only this particular question should  
> > > > > > > > > display
> > 
> > > > > > > > > 1. can i jump to the particular question say question number  
> > > > > > > > > 10 on the  
> > > > > > > > > answer of particular question
> > 
> > > > > > > > > Best Regards  
> > > > > > > > > Vinit
> > 
> > > > > > > > > > Vinit:
> > 
> > > > > > > > > > Questions have a "relevancy" or "skip condition", in the  
> > > > > > > > > > negative. If  
> > > > > > > > > > the question is not "relevant" then it will be skipped. That  
> > > > > > > > > > can  
> > > > > > > > > > apply to as many questions as you like. So, you can have an  
> > > > > > > > > > entire  
> > > > > > > > > > branch of questions not appear if they share the same  
> > > > > > > > > > condition.
> > 
> > > > > > > > > > Gaetano
> > 
> > > > > > > > > > > Thanks a lot for great help
> > 
> > > > > > > > > > > I just want to ask can i jump to the particular question on  
> > > > > > > > > > > the basis  
> > > > > > > > > > > of the answer and can i block more than one question on the  
> > > > > > > > > > > answer of  
> > > > > > > > > > > the question
> > 
> > > > > > > > > > > > vinit,
> > 
> > > > > > > > > > > > please check out the following resources. the design  
> > > > > > > > > > > > tutorial should  
> > > > > > > > > > > > be particularly useful. also, the widgets forms in the  
> > > > > > > > > > > > sample form  
> > > > > > > > > > > > repo has examples of conditional branching and required  
> > > > > > > > > > > > questions.
> > 
> > > > > > > > > > > > form guidelines:  
> > > > > > > > > > > > [http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines](http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines)  
> > > > > > > > > > > > form design tutorial:  
> > > > > > > > > > > > [https://bitbucket.org/javarosa/javarosa/wiki/buildxforms](https://bitbucket.org/javarosa/javarosa/wiki/buildxforms)  
> > > > > > > > > > > > sample forms:  
> > > > > > > > > > > > [http://code.google.com/p/opendatakit/source/browse/?repo=forms](http://code.google.com/p/opendatakit/source/browse/?repo=forms)
> > 
> > > > > > > > > > > > yaw
> > 
> > > > > > > > > > > > > Dear all,  
> > > > > > > > > > > > > I want to know about the conditional jump like on the  
> > > > > > > > > > > > > selecting particular  
> > > > > > > > > > > > > answer jump to the specified question and lock the  
> > > > > > > > > > > > > particular question and  
> > > > > > > > > > > > > make some question mandatory or required .  
> > > > > > > > > > > > > In the sample form i could only find about the skipping  
> > > > > > > > > > > > > rules.

> **···**
>
> On Thu, Aug 25, 2011 at 08:05, Vinit Sharma wrote: \> On Aug 25, 1:05 am, Yaw Anokwa wrote: \>\> On Wed, Aug 24, 2011 at 10:45, Vinit Sharma wrote: \>\> \> On Aug 24, 12:45 pm, Yaw Anokwa wrote: \>\> \>\> On Wed, Aug 24, 2011 at 06:40, Vinit Sharma wrote: \>\> \>\> \> On Aug 23, 7:54 pm, Yaw Anokwa wrote: \>\> \>\> \>\> On Tue, Aug 23, 2011 at 04:36, Vinit Sharma wrote: \>\> \>\> \>\> \> On Aug 23, 3:30 pm, Gaetano Borriello wrote: \>\> \>\> \>\> \>\> On Tue, Aug 23, 2011 at 2:42 AM, Vinit Sharma \< vinit2...@gmail.com\> wrote: \>\> \>\> \>\> \>\> \> On Aug 23, 10:46 am, Gaetano Borriello \< gaet...@cs.washington.edu\> wrote: \>\> \>\> \>\> \>\> \>\> On Mon, Aug 22, 2011 at 9:52 PM, Vinit Sharma \< vinit2...@gmail.com\> wrote: \>\> \>\> \>\> \>\> \>\> \> On Aug 20, 8:18 pm, Yaw Anokwa wrote: \>\> \>\> \>\> \>\> \>\> \>\> On Sat, Aug 20, 2011 at 00:03, Vinit Sharma \< vinit2...@gmail.com\> wrote: \>\> \>\> \>\> \>\> \>\> \>\> \> Thanks in advance \>\> \>\> \>\> \>\> \>\> \>\> \> Best Regards \>\> \>\> \>\> \>\> \>\> \>\> \> Vinit \>\> \>\> \>\> \>\> \>\> \>\> \>\> \> -- \>\> \>\> \>\> \>\> \>\> \>\> \> 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 \>\> \>\> \>\> \>\> \>\> \> -- \>\> \>\> \>\> \>\> \> 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 \>\> \>\> \>\> \> -- \>\> \>\> \> 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 \> \> -- \> Post: opendatakit@googlegroups.com \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \> Options: http://groups.google.com/group/opendatakit?hl=en \>

---

<div class="post-metadata">

**Author:** ![Vinit\_Sharma](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@Vinit\_Sharma](https://forum.getodk.org/u/Vinit_Sharma)\
**Post date:** [August 26, 2011, 5:32am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/16 "2011-08-26T05:32:24Z")

</div>

I saw the odk 1.1.7 beta version which you uploaded 🙂  
may i know when i can see the widget

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 26, 2011, 5:54am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/17 "2011-08-26T05:54:53Z")

</div>

you can see the widget now if you download the rc and try out new  
widgets form. we will push a final release when the rc is stable.

> **···**
>
> On Fri, Aug 26, 2011 at 08:32, Vinit Sharma wrote: \> I saw the odk 1.1.7 beta version which you uploaded :) \> may i know when i can see the widget \> \> -- \> Post: opendatakit@googlegroups.com \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \> Options: http://groups.google.com/group/opendatakit?hl=en \>

---

<div class="post-metadata">

**Author:** ![Vinit\_Sharma](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@Vinit\_Sharma](https://forum.getodk.org/u/Vinit_Sharma)\
**Post date:** [August 26, 2011, 6:27am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/18 "2011-08-26T06:27:20Z")

</div>

I download rc and test widget.xml from this link  
[http://code.google.com/p/opendatakit/source/browse/Widgets.xml?repo=forms](http://code.google.com/p/opendatakit/source/browse/Widgets.xml?repo=forms)  
but it doesn't show similer to image as you sent  
[http://opendatakit.org/wp-content/uploads/2011/07/plotStatus.png](http://opendatakit.org/wp-content/uploads/2011/07/plotStatus.png)

can i get xfrom which have such cases and widget in odk

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 26, 2011, 6:35am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/19 "2011-08-26T06:35:23Z")

</div>

try downloading new widgets form on [http://opendatakit.appspot.com](http://opendatakit.appspot.com). it  
won't be exactly the same as the picture, but use your imagination 🙂

> **···**
>
> On Fri, Aug 26, 2011 at 09:27, Vinit Sharma wrote: \> \> I download rc and test widget.xml from this link \> http://code.google.com/p/opendatakit/source/browse/Widgets.xml?repo=forms \> but it doesn't show similer to image as you sent \> http://opendatakit.org/wp-content/uploads/2011/07/plotStatus.png \> \> can i get xfrom which have such cases and widget in odk \> \> -- \> Post: opendatakit@googlegroups.com \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \> Options: http://groups.google.com/group/opendatakit?hl=en \>

---

<div class="post-metadata">

**Author:** ![Vinit\_Sharma](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@Vinit\_Sharma](https://forum.getodk.org/u/Vinit_Sharma)\
**Post date:** [August 26, 2011, 7:12am UTC](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645/20 "2011-08-26T07:12:44Z")

</div>

thanks a lot ... Awesome 🙂  
this is what i was looking for!!

> **···**
>
> On Aug 26, 11:35 am, Yaw Anokwa wrote: \> try downloading new widgets form onhttp://opendatakit.appspot.com. it \> won't be exactly the same as the picture, but use your imagination :) \> \> On Fri, Aug 26, 2011 at 09:27, Vinit Sharma wrote: \> \> \> I download rc and test widget.xml from this link \> \>http://code.google.com/p/opendatakit/source/browse/Widgets.xml?repo=f... \> \> but it doesn't show similer to image as you sent \> \>http://opendatakit.org/wp-content/uploads/2011/07/plotStatus.png \> \> \> can i get xfrom which have such cases and widget in odk \> \> \> -- \> \> Post: opendatakit@googlegroups.com \> \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \> \> Options:http://groups.google.com/group/opendatakit?hl=en

[Next page](https://forum.getodk.org/t/conditional-jump-and-lock-question-in-xform/645.md?page=2)
