Pass data from repeater into dynamic lightbox

The use case is for a creator to submit a request to participate in a brand’s marketing campaign by browsing a list of campaigns and adding their content (for review) to the brand via the Add Content button that opens a lightbox. Then post their input.

The problem is bringing the campaign title from the individual item into the lightbox and then inserting it into the “SubmitContent” dataset as a reference field in order to link the campaign and creator content and not duplicate the campaign title.

I’ve created:

  1. A dynamic page with a repeater to list marketing campaigns and have an “all” page and a “title” page with details of the campaign,
  2. A lightbox where the creator adds a caption and type.


Dataset: addInfluencerCampaign
Field: Campaign Title (primary)
Field Key: campaignTitleId
Feild Type: Text


Dataset: SubmitContent
Field Name: Campaign
Field Key: campaignId
Field Type: Reference
Referenced Collection: addInfluencerCampaign

The #addContent button is outside of the Repeater. How are you retrieving the selected Repeater Item? Getting the $w.at() scope only get’s the button’s scope and not the Repeater item.

Also, AddInfluencerCampaign is flagged as an error. Is that the correct name of the Dataset? Or is it addInfluencerCampaign ?

See the Ratings example to see how to select an item in a Repeater and open up a Lightbox with that item’s information.

Thank you. I’ve some work to do.