Hello,
I am trying to get a button to hide in a repeater if there is no corresponding document to download in the dataset (impAnnouncement). The code below doesn’t report any errors but also doesn’t hide the button. Any help greatly appreciated.
Thanks,
$w.onReady(function () {
$w("#impAnnouncement").onReady( () => {
var hasDownload = $w("#impAnnouncement").getCurrentItem().download;
if(hasDownload){
$w("#btnLink").show()
} else {
$w("#btnLink").hide()
}
});
});