Hello all if you could offer assistance here it would be very helpful.
Details:
1: Logged in users may click the (save) wishlist button and be stored in database.
2: In a search function when a user searches database the repeater results display all repeater items plus previously wishlisted items.
I cant seem to have each repeater item display saved items by user, it is either all items checked or none at all.
wixData.query("wishlist")
.eq("check",true)
.find()
.then((results) => {
let resultCount = results.totalCount;
$w("#repeater5").data = results.items;
$w("#repeater5").forEachItem( ($item, itemData, index) => {
if (resultCount > 0) {
$w("#save").show();
$w("#delete").hide();
}
else {
$item("#save").hide();
$item("#delete").show();
}
})
});
});