Accessing List Index from Script?

This community post may be helpful -- https://community.retool.com/t/how-to-access-index-in-a-listview/12370/3