It is no problem! Thank you for taking the time to explain the steps in satisfying our use case, especially in such detail.
It really is greatly appreciated!
We’ve implemented your sample config and it has produced our required output , thank you so much. Please see the file here.
We did unfortunately run into a bit of an issue, where if the npo_data
group is moved within the inputs
block it no longer produces any values.
And, as you’ve mentioned, leaving it on the top level causes a blank page to be rendered even with the field-list hidden
property being set.
I’m a tad bit confused by this behavior, would you perhaps be able to provide some clarity regarding this?
Your selected
solution worked like a charm! We’re so relieved to hear that there’s an xlsx form way to address this requirement, as originally a ODK thread suggested editing the xml in order to access those dynamic values (I will edit this post once I find the link again).
For the life of me I was unable to get the choice_filter
to work with both the “cascade” district
and the selected(${...}, name)
function, in a single drop down. Not sure if I’m doing something wrong.
So I’ve implemented a little workaround where the relevant drop down is duplicated.
The first drop down contains the calculated
values of the prior NPO selections, as well as the relevant level choice_filter
(eg. district=${district}).
The second drop down then uses the first drop down as a selected
choice_filter
.
It’s not ideal, seems to work though. Unsure how to better it at this time, any thoughts?
Another thing we have noticed while testing is that when there are a few ‘NPO’ items already created, and we’ve selected one of them in order to create a ‘Team Area’, we sometimes forget which NPO we are using for the test.
And, please do correct me if I’m wrong, there does not seem to be any visual indicator whilst in the contact create
or edit
flow.
So we attempted to create a sort of “breadcrumb
” calculated value, that could be referenced in the form_title
(since it is displayed at the top of the whole form flow).
Unfortunately, that does not seem to work. Is there a way to do something like that?
So as an example:
For the hierarchy of “NPO1”, “Team Area1”, “Indawo1”.
In the “Bounded Structure” create form, which sits underneath the Indawo level, we would like to display the title of something like “create new NPO1>TeamArea1>Indawo> Bounded structure”.
This also ties in with the issue of placing the npo_data
in the inputs
block, as I’ve read that this is how the data of a parent of a parent is accessed. Unsure if we can already accomplish this with a similar npo_data
type of approach?