I wrote this small code
$w.onReady( function () {
let checkURL = $w( ‘#dynamicDataset ’ ).getCurrentItem().websiteUrl;
console.log(checkURL);
if (checkURL === undefined){
$w( ‘#image1 ’ ).hide;
}
});
checkURL is always logged as undefined if the cell is empty in the collection. What am I not getting?
hope someone can help
Hi @yisrael-wix , is there anyway you can help me with this as well? I don’t know what went wrong here… syntax is perfect. Doesn’t seem to work though.
J.D
February 14, 2021, 5:40pm
3
See in red:
$w.onReady(function () {
$w('#dynamicDataset').onReady(() => {
let checkURL = $w('#dynamicDataset').getCurrentItem().websiteUrl;
console.log(checkURL);
if (checkURL === undefined){
$w('#image1').hide();
}
})
});
Hey JD! That was awesome my friend!
Hey JD! That was awesome my friend!
Hey @jonatandor35 That was awesome my friend!
Hey @jonatandor35 That was awesome my friend!
Hey @jonatandor35 That was awesome my friend!