Thanks Amanda…I used the first option…very easy fix. I guess I should have read the detail in the intro section on repeaters before coming here!
I’ll take a look at the npm when I have time…I am always open to something that makes life easier.
Final code:
$w.onReady( () => {
$w("#products").onReady( () => {
$w("#productsRepeater").forEachItem( ($item, itemData, index ) => {
let tiles = itemData.tiles
let i = tiles.length
while (i>0) {
let tile = tiles[i-1]
//console.log(element)
if (tile === "A") {$item('#ATile').expand()}
if (tile === "B") {$item('#BTile').expand()}
if (tile === "C") {$item('#CTile').expand()}
if (tile === "D") {$item('#DTile').expand()}
if (tile === "E") {$item('#ETile').expand()}
if (tile === "F") {$item('#FTile').expand()}
i--
}
})
})
})
Simon.