How to gate content using a Lightbox & know which content was requested?

I have content on the site that users can request to receive copies of after providing their contact info. I’d like to send them the specific content requested after they’ve sent their contact info (preferably automatically, but I can also do this manually)

A repeater is used for the content, the repeater images/buttons link to a Lightbox which contains a “Sales Lead” form. I have a hidden “resourceRequested” field on the lightbox form and created the corresponding field in the salesLead database.

What is the best way to achieve this functionality (e.g. collecting and storing a user’s information, knowing which specific content they requested and sending it to them)?

Is there a way to do this without code?

Otherwise, I thought I could set a (editable) value in the repeater (a hidden text element?) that gets sent to the lightbox and populates the hidden “resourceRequested” form field on the lightbox which is connected to the salesLead database. Am I on the right track? If so, how can I do this (feels like it’s just a bit of code on both the repeater and the lightbox?).

So what’s that you’re looking for?

I want to “gate” content on the site (user needs to provide contact info before they’re provided content) so sales leads are collected. But then I need to know which content to send the user once they’ve submitted the request.

That means when the form is submitted, it needs to also indicate which content was selected.

The content selected is known because the user clicked either the Item image or button of the specific resource requested which opens the lightbox that contains the sales lead form.

Hi Kia, did you figure out a way to do this easily?

Hi Paul, no unfortunately no one answered and I was not able to figure it out.