How do you get the Index of a repeated item?

This seems like it should be so simple but I cant figure it out. I just want to be able to display “1”, “2”, “3”, etc, for each item displayed by their index in the array.

Nevermind, I did this hack here…

MAP(pageVars.PAGE_MyArray, SET_KEY(item, “index”, index))

Would be nice if there was a built-in “index” property for “current”. Like current.index …

Yeeep, this is coming with the new 2.X and formulas therein :sweat_smile:

How is the state of this functionality? I can see the repeatedinfo.index property but it’s always null

regards

Ive since discovered that there is an INDEX_OF function

Hi! This is available on 2.4.X runtimes (not on AG Legend). I just checked and it’s working fine for me, so if it isn’t working for you on 2.4.X, we’ll need to look more into how and where you use it to know what’s going on :slight_smile: