Hi,
I have a Dynamic dataset
On the Title pages I have a video player (Youtube) that is connected to a url field on the dataset (the field is named youtubeLink .
I want hide the video player and show it only if the URL field is not empty.
I tried this code below, but the field key youtubeLink is not being recognized, I feel like I’m not writing the code correctly, maybe because it’s a dynamic dataset it should be set differently?
In the url field in your collection, in the items where you don’t have videos add a dummy place holder url. something like: ’ http://placeholder.com ’
In the code you need to use the getCurrentItem function to get the data and then check it looks something like this (videosrc is the name of the url field) :