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..."
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.
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..."
Dear @yanokwa, I'm trying to access the google group you mentioned in this post, but it seems unavailable. Is the group or the post still active?
I want to learn more on jr:choice-name, can you redirect me to relevant materials?
thanks, Lavinia
Hi there!
I read the docs but have another question: in my form, I first have a select_one question and then a begin group, wherein I included a jr:choice-name to refer to the select_one question outside of the group.
Is this funcionality supported? what could be a workaround?
I tried the path described in the docs, having the select_one questiton within the begin group and used the jr functon worked perfectly.
Thanks!
If it's a regular group (not a repeat), you shouldn't need to do anything special. If you are having issues please attach the XLSForm sample here to help people troubleshoot.