Forum,
My need is quite simple: In my dataset, there are records that have a Youtube video link and others that don't. I also have a field (column) that is boolean, which is true when there is a video link on the record.
What I need to do, is to HIDE the video player when that boolean is FALSE.
Here's the code I have:
$w.onReady(function ( ) { $w('#dynamicDataset').onReady ( ( ) => { showMM(); }); }); function showMM () { let value = $w('#dynamicDataset').getItems("Video_Boolean") if (value === 0) { $w('#videoPlayer1').hide(); } }
I tried with value === 0 and === FALSE, but the last one is not even recognized.
Of course, it is not working, the player is shown always.
Any idea what I may be doing wrong?
Thanks for the help to this newbie.