Use of jr:choice-name in xlsform

Hi Team, I wanted to refer to a label using jr:choice-name. Can any team
member give me a step by step way of using it to refer to previously
entered choice label in xlsform.

I have tried and i keep getting this error message: Error: "... There has
been a problem trying to replace ${livestockactivity_list} with the XPath
to the survey element named 'livestockactivity_list'. There is no survey
element with this name..."

Thanks.

Collins

Collins,

jr:choice-name cannot have a blank value for its first argument. See
https://groups.google.com/d/msg/opendatakit/A8GBWt8cYvo/4r-NsLXAbZcJ
for the details.

Workaround is something like this:
if(string-length(${livestockactivity_list}) !=
0,jr:choice-name(${livestockactivity_list},'${livestockactivity_list}'),'(unspecified
livestockactivity)')

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Mon, Nov 18, 2013 at 1:25 AM, Collins McAdoyo collins.adoyo@gmail.com wrote:

Hi Team, I wanted to refer to a label using jr:choice-name. Can any team
member give me a step by step way of using it to refer to previously entered
choice label in xlsform.

I have tried and i keep getting this error message: Error: "... There has
been a problem trying to replace ${livestockactivity_list} with the XPath to
the survey element named 'livestockactivity_list'. There is no survey
element with this name..."

Thanks.

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.

1 Like