Relative Referencing with Indexed Repeat in XLSForm

Hi ODKers, I have a form in XLSForm with absolute referencing that seems
not work.

Please, any idea on the use of relative referencing with the Indexed-repeat
in XLSforms would be highly appreciated. Attached is the xlsform.

Collins

xlsform.xlsx (26.1 KB)

On line 29, you have a relevance condition:

${cropname}=30 or ${cropname}=35
You would replace that with

../cropname=30 or ../cropname=35

because this prompt (cropname_other) is within the same group (the clu
repeat group) as cropname.

Furthermore, in your labels, you make reference to ${clu_name} and other
values that are specific to each repeat group.
These will not generate the appropriate text the second time through your
survey. I am not aware of any way to correct this other than hand-editing
the generated XML to replace the full path expression, e.g.,

Name of crop/aquaculture on :

with a relative expression

Name of crop/aquaculture on :

··· On Tue, Feb 18, 2014 at 10:48 PM, Collins McAdoyo wrote:

Hi ODKers, I have a form in XLSForm with absolute referencing that seems
not work.

Please, any idea on the use of relative referencing with the
Indexed-repeat in XLSforms would be highly appreciated. Attached is the
xlsform.

Collins

--

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


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Hi am struggling with index-repeat () in section A. Where it`s just saying that we may need to use index-repeat() for b17_main_purpose question. b17_main_purpose is asking about the purposes for growing potato ofsp. But b17 can only come if at A14_ofsp_5 one specified that he/she grew ofsp. Where could the problem be?. How do i use the indexed-repeat function in my case

FTF_Survey_27-10-2016.xlsx (592 KB)

See https://opendatakit.org/help/form-design/#xpath_expressions

··· On Thu, Oct 27, 2016 at 8:06 PM, wrote:

Hi am struggling with index-repeat () in section A. Where it`s just saying
that we may need to use index-repeat() for b17_main_purpose question.
b17_main_purpose is asking about the purposes for growing potato ofsp. But
b17 can only come if at A14_ofsp_5 one specified that he/she grew ofsp.
Where could the problem be?. How do i use the indexed-repeat function in my
case

--

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


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com