.hide .collapse not working...

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 :slight_smile:

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.

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!