issue with repeaters in Light Box

Hi,
I’m using code the following code and i have error that i not have on regular page - only on Light Box page:
export function repeater1_itemReady($item, itemData, index) {
$item(“#name”).text = itemData.cityName;
$item(‘#container1’).onClick(() => {
});
}

i’m using repeater with text element inside the container
when i’m configure itemReady i get on my element inside the repeater the following error:
‘text’ dos not exist on ‘#name

anyone know how to resolve this?

I have tested your code in a similar environment as you have described, however, couldn’t reproduce your issue on my end.

It looks like there is some mismatch in the element IDs or a similar issue, as the code itself or the fact that it is placed on a lightbox page doesn’t seem to be an issue.

Please double-check all of the element IDs and collection field keys used in your code.

On another note, it looks like your “name” element doesn’t have a “text” property (which means that it is probably not a “Text” element), that’s why it’s getting marked in red. Please make sure that the element that you are using has a “text” property. You can check if that’s the case by looking for this type of element in the Corvid reference: https://www.wix.com/corvid/reference/$w.Text.html#text

Hi Angelina,
did you add “repeater1_itemReady” on the properties panel?

and the #name property is text element if its on regular function and not export function
just in repeater export function and on lightbox its showing error

@anhelinak ?