Retrieving JS path

Hi everyone, I’m trying to solve the issue where variables aren’t available when using repeated items. I believe that using the JS path might be the best solution for me, but I’m unsure how to apply it to each specific repeated item. Does anyone know if there’s a way to automatically function to retrieve the JS path for a repeated element?