top of page

Hide Empty CMS Fields in Wix




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