Pass the $index from a repeat to a Modal

This is a strange request i know, but there is method behind the madness. As we want to know the position of the “record” on the page hence using the $index from the repeat. Was it the 1st or 5th record.

So we have a repeat with data. The $index is created from the repeat. Then we have a modal that opens. And we use the Data Detail (* with ID) to get all the information… eg… id… name … and that works 100%. But how to we pass the $index value to the modal from the repeat? is this possible?

Community Page
Last updated: