I’m a bit new to this so need some help.
I’m trying to make a simple site showing content in a repeater from a database, I get most of it to work but I have some buttons that link to websites and I want to hide them if the field in the database is empty.
I’ve searched and tried so many different ways now but don’t get it to work, either it hides all or don’t hide any… anyone who can help me with this?
guess it’s quite simple but can’t figure it out.
$w.onReady(() => {
$w("#repeater1").onItemReady(($i, iData, inx) => {
if (!iData.link) {$i("#button1").hide();}//instead of "link", use your collection field key
})
})
Works great
Thank you very much
@gandsjo You’re welcome
Exactly what I’m looking for, thank you.