Can't pass data object to lightbox with getcontext(). Am i using the wrong item ID?

Hi, I want to add reviews to a dynamic dataset. So the item from dataset 1 (conservation projects) then is referenced in data set 2 (reviews), so that they have individual reviews. I get an type error when trying to export the object data to the lightbox.


So on the on click function i send the data to the lightbox as the item id. I have tried different title/projectname/item ID for each field as I am not sure which ID is needed for the object to be carried acorss.


I then try to get context and use this data that is exported from the dynamic page dataset. So the title of the project (from dataset1), should be exported to this lightbox and then the review will link the the title of the project to reviews (dataset 2).


However this keeps happening… i have tried itemId, projectNameId, titleId. All the fields it could be that relate to the data field I am trying to reference and the same error comes up. Therefore i must be doing something wrong when exporting the dataForLightbox

this is the column in reviews (dataset 2) that should be filled with the data (title) from dataset1. But it never fills it, the rest fills fine.

I feel like I am missing one simple word or inserting the wrong value but I am not sure which.

Any help it appreciated!

Thanks :slight_smile:

Code Examples are shown in both of these Wix Code API listings: