Hi Helena
Any reason you’re using a repeater instead of a gallery…? I’ve got a nice bit of code here that is basically plug and play for a gallery that you can probably adapt to populate the repeater correctly…, see below:
$w.onReady(function () {
$w('#dynamicDataset').onReady(() => {
let item = $w('#dynamicDataset').getCurrentItem();
let itemsForGallery = [];
for (let i = 1; i < 4; i++) {
if (item[`image${i}`]) {
itemsForGallery.push({src: item[`image${i}`] });
}
}
$w("#gallery1").items = itemsForGallery;
});
});