I'm a beginner to ODK and XLSForm, and I've been having some difficulty
getting my cascade select functions to work properly. I'm sure it has
something to do with the repeat I'm including, but I'm not quite sure what
the problem is. After reading around it looks like I should be using the
current()/../ function when making my references, but I keep getting the
same error:
Dynamic select question has no choices! [instance(states)/root/item]. If
this occurs while filling out a form (and not while saving an incomplete
form), the filter condition may have eliminated all the choices. Is that
what you intended?
And I've tried exporting to ODK Collect, but I either end up with no
options after the first question, or I hit my second iteration and receive
another error message. I'm hoping this is just an easy fix that someone can
help me with because I've tried several variations at this point and
haven't made any progress. I've attached an example of what I'm trying to
do (I know the countries/state/cities don't necessarily make sense; I just
rushed to put an example together).
Test.xls (19 KB)
Your choice filter should read:
country1=current()/../country
ยทยทยท
On Tuesday, April 12, 2016 at 9:24:03 AM UTC-6, Conor Gallagher wrote:
>
> I'm a beginner to ODK and XLSForm, and I've been having some difficulty
> getting my cascade select functions to work properly. I'm sure it has
> something to do with the repeat I'm including, but I'm not quite sure what
> the problem is. After reading around it looks like I should be using the
> current()/../ function when making my references, but I keep getting the
> same error:
>
> Dynamic select question has no choices! [instance(states)/root/item]. If
> this occurs while filling out a form (and not while saving an incomplete
> form), the filter condition may have eliminated all the choices. Is that
> what you intended?
>
> And I've tried exporting to ODK Collect, but I either end up with no
> options after the first question, or I hit my second iteration and receive
> another error message. I'm hoping this is just an easy fix that someone can
> help me with because I've tried several variations at this point and
> haven't made any progress. I've attached an example of what I'm trying to
> do (I know the countries/state/cities don't necessarily make sense; I just
> rushed to put an example together).
>