I have a dynamic page that displays patients info and also appointment notes from a different collection through a repeater. Every note has an image field to store a relevant note from that appointment.
I used the link provided in the image settings to open a pop up however I want more info about that image displayed so what I tried to do is to replicate that pop up through a Lightbox, everything works fine with the link however I am not being able to tell the Lightbox that I need to display the information contained in that particular image displayed back in the repeater.
I have tried using the openLightbox function and then send data to it but I am not sure how to accomplish this. I thought that it needs to pass the info on that image container but no sure what object I have to call.
Whenever I open it it brings the same image but not the one related to the specific note being shown by the repeater.
Here is my code so far:
For the dynamic page
For the Lightbox
Thanks for your help