Hi Yisrael
Thank you for your reply. Yes - I would like to “embed” the Google sheet in my page. I want to pass the URL from my database to the src within my HTML code. (The html element code is simply: )
I am new to javascript coding and so am struggling to completely understand the articles you provided.
From what I understand - I first want to call on the correct item of data from my database (field key: googlesheets), then I want to insert that url into the src of my #myhtml element. Each member has their own googlesheets url, and I want to show the member who is currently logged in their sheet.
This is the code I have…
$w.onReady( () => {
$w(“#dynamicDataset”).onReady( () => {
let newSrc = $w(“#dynamicDataset”).getCurrentItem();
$w(“#myhtml”).src=newSrc;
} );
} );
However I’m unsure how this code would know to gather the googlesheets url from my database… am I missing something?
I’m getting this error: “Wix code SDK error: The url parameter that is passed to the src method cannot be set to the value [object Object]. It must be of type url.”
Any help is greatly appreciated!