@mhammouz Hello I would appreciate your help! I reached out to Wix support when i couldn’t get any code to work and they just refer me back here.
i need to hide a button when there is no url connected to it (in the field cell) and it isn’t working for me, i’ve tried using 2 different data sets thinking that was it too but to no avail.
$w.onReady( function () {
$w(‘#dynamicDataset’).onReady( () => {
let url= $w(‘#dynamicDataset’).getCurrentItem().cafeonline;
console.log(“url=” + url);
if (url) {
console.log(“inside if = true”);
$w(‘#button51’).show();
$w(‘#button51’).expand();
} else {
$w(‘#button51’).collapse();
$w(‘#button51’).hide();
}
});
})
