Hi All,
I try to pre-filter the options based on categories using a Lookuptable
e.g.:
repeat group
Q1 select category
Q2 select type
When I simply drag the filter it filters fine for the first repeat (as in
normal forms), but the second repeat is still filtered over the first
answer, which means an absolute path has been made, instead of a relative
one.
The wiki documentation mentions something on filtering inside repeat groups
and mentions specifically the current() function for lookup tables, but
does not explain how to use it:
current(): This will return the question. Its needed if you’re writing
logic in the repeat for something like a lookup table.
Source: Using Repeat Groups in the Form Builder
https://confluence.dimagi.com/display/commcarepublic/Using+Repeat+Groups+in+the+Form+Builder
I cannot find any other entry on the current() except for this page
mentioned above, can somebody explain how to use it?
Regards Jos