Hi! I am using the following code to populate the elements in a repeater from a data collection. It loads the first set of repeaters just great, however, when I navigate to the next page of results the text elements are not populated.
Any ideas on how to trigger these items to be loaded?
$w.onReady(() => { $w("#igniteDataset").onReady(() => { // Register onClick event for each repeater item $w("#repeater1").onItemReady(($w, itemData, index) => { $w("#linkBtn").onClick(() => { const repeaterItem = itemData; console.log(repeaterItem); wixWindow.openLightbox("Ignite Submission Review", repeaterItem); }); }); // Pre-process data before populating repeater $w("#repeater1").forEachItem(($item, itemData, index) => { $item("#nameText").text = itemData.firstName + " " + itemData.lastName; $item("#emailText").text = itemData.email; $item("#myText").text = makeBrief(itemData.storyIdea, 50); }); }); });
Thanks,
Peter
Is there a reason you are coding it? I believe you can connect the elements to a DB without using code.