Here is my code - I am focusing on the list repeater
$w.onReady(function () {
$w("#dataset1").onReady( () => {
const name = $w('#text93');
if (name === "") {
name.hide();
}
$w("#listRepeater").onItemReady( ($item, itemData, index) => {
if (itemData.lostOrFound === "lost") {
console.log("trigger " + itemData.lostOrFound)
$w('#location').text = "Location lost:"
}else{
console.log("trigger " + itemData.lostOrFound)
$w('#location').text = "Location found:"
}
});
});
});
Here is what happens in preview
The if statement triggers correctly in the console
But all entries read “Location Lost” instead of “Location Lost” OR “Location Found”