Darshan Hiranandani : How can I implement previous and next navigation links in a popup during a query loop?

I hope you’re all doing well!

I’m Darshan Hiranandani, I’m currently working on implementing previous and next navigation links in a popup during a query loop. I’m wondering if anyone has tackled this before or has any suggestions on how to achieve it efficiently. Any insights, code snippets, or resources you can share would be greatly appreciated.

Looking forward to your suggestions!

Best,
Darshan Hiranandani