top of page

Hide Empty CMS Fields in Wix

Updated: May 10




Velo Code:


$w("#myDataset").onReady( () => { 
       let item = $w("#myDataset").getCurrentItem(); 
       if (item.image) {
          $w("#imageElement").show();
       } else {
          $w("#imageElement").collapse();
          $w("#imageElement").hide();
       }
    } );


Enjoy!

bottom of page