Hello,
I have a repeat group that uses model iteration query. I would like to filter it basing on a single choice question selected prior to.
using [subcounty=/data/selected_subcounty] doesn’t work
any suggestions ?
Many thanks
Hello,
I have a repeat group that uses model iteration query. I would like to filter it basing on a single choice question selected prior to.
using [subcounty=/data/selected_subcounty] doesn’t work
any suggestions ?
Many thanks
Hey Leonard,
Thanks for posting this. My name is Shiv, and I am a CommCare Support Analyst at Dimagi. Based on my understanding, you can’t directly filter the items in the repeat group based on a form question (like a multiple-choice/single-select) in the Model Iteration Query itself. This is because the list of elements for model iteration must be a defined data set(cases, locations, lookup table items, or other data components that are known when the form is loaded). When the form loads, you can’t reference form data that hasn’t been collected yet in the query.
If you would be able to share more details about your use case here, I would be able to help you with a workaround.
Best,
Shiv