Alright, getting a bit closer with
spraying_survey_test4.xlsx (16.3 KB)
I'm getting the question to repeat for each health facility BUT the health facilities are not limited to the ones linked to the selected district.
This form includes all 25 health facilities in the repeat.
I believe that my repeat_count
needs to limit the count to where districtid=${district}
but my current entry generates the total count of the list elements (not the filtered list).
count(instance('health_facility')/root/item)
@LN does anything come to mind for you about how to limit this count? I picked up on the general idea from your answer here. I'm trying to limit the repeats to elements of the health_facility
list where districtid
equals the selected district
.