I have encountered an error in ODK Collect using the indexed-repeat function. The function works correctly when the third argument is position(..) or an integer, i.e. indexed-repeat(${hh_member_name},${hh_membership_repeat},1), but will not work if I reference an integer value collected previously in the form, indexed-repeat(${hh_member_name},${hh_membership_repeat},${index1}).
The interesting thing is this works on the SurveyCTO app and in Enketo, leading me to believe it is an error in ODK Collect instead of just something not currently supported. Is this truly an error or just something that is not supported on ODK Collect.
I am including a link to a sample form and a link to word doc with a screenshot of the error message encountered when using the form. Any advice would be appreaciated.