If there is none, you can not see

On my page I have a player connected to my database, when there is a video shown, but if there is none, the default is shown (since it is not obligatory field). I want it to not be seen directly, it does not appear. Thank you.

1 Like

Make the player hidden at the loading of the page then add a show function to the trigger that shows the videos. Hope that makes sense, tell me if you don’t understand. And if you can, show the website.

Ok, if you’re familiar with basic code and don’t know much more like me, add this to the load page event :

$w(#player).hide

And this to the button onClick event that changes your player thing :

$w(#player).show

Replace #player with whatever ID your player has.

Hope that helped with what you’ve wanted to achieve. If not then I don’t know honestly ; I’m a beginner at coding and don’t know much.