Need help with figuring out code

I am trying to connect a new sales tool to our website that I created. It is a lead capture tool to build solar systems on the roofs of individuals homes. I have the code adding the sdk to the head code implimented. I have tried connecting a custom element with the sdk url to the file and adding html code block to the site. I wrote in the code to open the sdk on a button click, but its giving me an error that it cant find the name of the item i am trying to open. I asked chat gpt and it told me this: The issue you’re encountering occurs because the Velo environment in Editor X operates in a sandbox, which is a controlled environment separate from the global browser context. This means that JavaScript code run in the Velo environment doesn’t have access to global variables or scripts loaded outside of the Velo environment. In your case, the Lead Capture SDK script is being loaded in the global browser context, but you’re trying to access it from the Velo environment, hence the error.

anyone know if there is a work around for this or the issue is just because my site is not live and im viewing it in the previewer?

Anybody will be able to give you an answer, since you never provided your generated code.