Video and Dynamic Pages

Hello Jim,

  1. Add a video upload element from the Wix Editor to the page - like so

  1. There are two ways you can proceed now.

Either the way you are doing now using a URL and setting the src property to the URL for the item via code.

let url = $w('#dynamicRepeater).getCurrentItem().videoField;

$w('#uploadVideo').src = url;

PS. You would put this in the onDatasetReady event.


Or changing the field in the database to be of type video and connecting the video without code - like so

Best,
Majd