Conditional jump and lock question in xform

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

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 >

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

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 >

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
  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

  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 >

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

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.
<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 >

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

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 >

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

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

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 >

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

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). 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), 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
form design tutorial:
https://bitbucket.org/javarosa/javarosa/wiki/buildxforms
sample 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
form design tutorial:
https://bitbucket.org/javarosa/javarosa/wiki/buildxforms
sample 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 >

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

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 >

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

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

··· 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 >

thanks a lot ... Awesome :slight_smile:
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