SOLVED Show or hide element in dynamic page depending on boolean

I solved it using this tutorial https://support.wix.com/en/article/corvid-tutorial-hiding-a-video-player-when-there-is-no-video-to-play

Code I used is below if anyone else is similarly new as I am.

$w.onReady(() => {
    $w("#dynamicDataset").onReady(() => {
 const item = $w("#dynamicDataset").getCurrentItem();
 if (!item.test) {
            $w("#testtext").hide();
        }
    });
});
1 Like