So I’ve looked around and found some code to hide a video on a dynamic page if there isn’t any data on that perticular page but show it if there is. This is the best I have found:
$w.onReady(function () {
$w('#dynamicDataset').onReady(()=>{
if($w('#dynamicDataset').getCurrentItem().videoField){
$w('#videoPlayer1').show('');
}
});
});
However it tells me The “src” property cannot be set to “”
How can I fix this?