Indexing Values in Repeating Sections

Modified on Mon, 30 Jun at 2:16 PM


Similarly to how you can reference values in previous loop iterations, you are able to index values in repeating sections by using __INDEX. (Or by using the parent index if in a loop already)


This can be used in a formula of an element to provide validation or visibility logic based on previous inputs.



Example 

Say there a series of repeating sections and want to validate that none of the responses for each section are the same.
This would be done via a validation formula on the picklist, within the form. See formula in Figure 1 on the Picklist Element.

Figure 1 - Picklist Validation Formula


This will manifest in the app as in Figure 2. This shows that a duplicate value will trigger the error message defined in Figure 1.


Figure 2 - Picklist Validation in Axsy Mobile


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article