HTML element dynamically changing url

Hi,

I’m trying to add an HTML element that dynamically gets the url from a collection. Url is for a google form. I tried to create a custom HTML element for it but I go this error:

Uncaught ReferenceError: $w is not defined

Can’t we use the $w function in custom elements? If we can’t, is there any other option to create an element like this?

Thanks for the help!

Hello, could you please add the relevant code snippet that is throwing your error including where the code is written (on the page, backend, html element). That way folks reading this will have more context to offer some ideas