# How can I feed an iframe on a dynamic page with a URL from the dataset?

**URL:** <https://forum.wixstudio.com/t/how-can-i-feed-an-iframe-on-a-dynamic-page-with-a-url-from-the-dataset/52428>\
**Category:** Ask the community\
**Tags:** question, cms, code\
**Created:** [September 15, 2023, 9:15pm UTC](https://forum.wixstudio.com/t/how-can-i-feed-an-iframe-on-a-dynamic-page-with-a-url-from-the-dataset/52428 "2023-09-15T21:15:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![teejay](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/teejay/32/19768_2.png) [@teejay](https://forum.wixstudio.com/u/teejay)\
**Post date:** [September 15, 2023, 9:15pm UTC](https://forum.wixstudio.com/t/how-can-i-feed-an-iframe-on-a-dynamic-page-with-a-url-from-the-dataset/52428/1 "2023-09-15T21:15:39Z")

</div>

I have 50 pages that need an iframe, each with a unique URL. Want to use the CMS with its dataset on a Item detail page. What is the best and easiest method to apply?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![KnowItAll](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/knowitall/32/82765_2.png) [@KnowItAll](https://forum.wixstudio.com/u/KnowItAll)\
**Post date:** [March 4, 2024, 11:46pm UTC](https://forum.wixstudio.com/t/how-can-i-feed-an-iframe-on-a-dynamic-page-with-a-url-from-the-dataset/52428/2 "2024-03-04T23:46:24Z")

</div>

I need exactly the same thing. Have you found a solution?

---

<div class="post-metadata">

**Author:** ![codequeen](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/codequeen/32/88960_2.png) [@codequeen](https://forum.wixstudio.com/u/codequeen)\
**Post date:** [March 5, 2024, 1:59am UTC](https://forum.wixstudio.com/t/how-can-i-feed-an-iframe-on-a-dynamic-page-with-a-url-from-the-dataset/52428/3 "2024-03-05T01:59:28Z")

</div>

You set the source via code.

Wait for the dataset to be ready then retrieve the URL saved in your database… then set the source of the html iframe element.

> **[src - Velo API Reference - Wix.com](https://www.wix.com/velo/reference/$w/htmlcomponent/src)**
>
> Sets or gets the URL of the HTML Component's code. Setting the src property sets the website that is displayed in the HTML Component. The src value must be set ...
