Dynamic page with embedded iframe?

Hi folks
Is it possible to create dynamic page with embedded iframe?
I am building a video website that contains over thousands of videos and the video are from 3rd party website. (Not youtube/ vimeo)
I built a database, set up a html column and input the video url into each cell.
But then I realized that this can only be done with youtube or vimeo url.
Is it possible to create dynamic page with embedded iframe?

1 Like

same question - I’ll delete my post and follow this one. In my case, I’ve added the embed code into a text field in my database. Would like to populate element (#html1) with the code from the database

Yes, you can add an HTML component to your dynamic page and set its source via code.
You’d need to get the current item from the dynamic dataset -

$w('#dynamicDataset').getCurrentItem()

extract the relevant field value from it and set it to the HTML component source -

$w('#html1').src
1 Like

@Chad Laufer - Thanks it seems to work fine with a URL field type, but not TEXT field type containing embed codes

Also curious on how to get this to work. Following…

Can you explain in more detail, seems like it should be fairly easy.