Please help me with this if you can provide a code example, rather than pointing to documentation which i read a thousand times and still do not understand how to do it…
I have a dataset for dynamic page. Dataset has multiple fields. One of the fields called “video” contains html code of a video player. I have a dynamic page with html element called “html1”. I want the dynamic page to pull value from “video” field of a dataset and send it to “html1” element on dynamic page, hence displaying the appropriate video for that particular row on dataset. Basically I am trying to recreate a blog using dynamic pages, blog has videos, not pictures.
I tried adding the following code to wix dynamic page and just got errors, please help!
export function html1_viewportEnter(event) {
$w("#html1").postMessage($w("#ChinaUncensoredEpisodePageConten").getCurrentItem("video"));
}
error i am getting is that my dataset ID “is not a valid selector”… please assist, I would greatly appreciate it. I viewed all the other posts on this topic and the documentation. Could not find a solution.