Connecting Database with Dynamic iFrame

Hi there!

I’ve been using Wix for a while but I’m brand new to Velo and coding in general. I’m a graphic designer by trade.

I have a database with clients listed and their websites. I have a client dashboard that shows client-specific data about their contract, on-going projects, etc when they are logged in. I want to be able to embed a view of their website that is dynamic and obviously changes so each client can see a view of their own website.

I have done a lot of googling, and I’m sure it’s not a super complicated issue but as I said I have no coding experience. If someone could help it would be greatly appreciated!


The iframe is named: #html1
my dataset is named: #dataset1
The field that has the URL in the database is called: #website

You cannot simply replace the iframe code, you need to setup the code in HTML be able to receive events and dynamically reflect the data inside the HTML embedded code

However, if you are going to set a URL instead a piece of code, you can set the HTML element url:

$w(‘#html1’).src = “https://google.com

Hi!

I tried putting that in, but it returned this error with no change :frowning:

and would this link to a URL from the database?

Thanks.