Hi, I’ve been trying to set a table not to connect to a video until selected on a dynamic page. I have a link from the home page to the same video element that I wanted to show first. I couldn’t find out how to do this (looked on online and contacted Wix Help who did come back to me - not with the answer I was looking for). I then thought why not have 2 video elements sitting on top of each other and use code to do what I want. Here is is the code I used -
import wixData from ‘wix-data’ ;
export function table2_click(event) {
let myElement = $w( “#videoPlayer3” );
let elementType = myElement.type; // "$w(#videoPlayer3)
$w( “#videoPlayer3” ).hide($w( “#videoPlayer4” ).show(),
)
}
Hope this helps other Wix members