Hi all, I have a wix website and i'm struggling with one small piece of coding.
I have created a dynamic page to display lots of pieces of information from a database filled with information collected on a user input form. I would like to display the inputted web address from this database as a web embed, with the url pulled from the database.
I am using the below code with dataset1 being linked to the profile database, and html1 is the web embed element.
$[login to view URL]( () => {
$w("#dataset1").onReady( () => {
const itemUrl = $w('#dataset1').getCurrentItem().url;
$w('#html1').src = itemUrl;
} );
} );
I am getting an error code:
Wix code SDK error: The url parameter that is passed to the src method cannot be set to the value . It must be of type url.
Can someone please help me understand where I am going wrong and help me fix this issue? Thanks!