We are experiencing an issue with the HubSpot form using the CTA code. When we try it locally and in other environments, everything works fine, but when we attempt it on the . it only renders a static image of the form. I have noticed that the script for hs-web-interactive is being canceled. Please see the screenshot below for reference.
We also check with Clouflare and it seems that it’s not blocked from their side.
We are using Nextjs application.
i could reproduce the error only partialy.
It seems that something (I assume your cookie script) is blocking the functionality/correct rendering due to a different domain.
The behavior I could reproduce:
- opening the link will render the form as an image
- waiting for quite some time(5-20s) will load the whole page
- After the whole page is loaded the form works fine
- If the form doesn’t work, a reload and another 5-10s solves the issue
Like mentioned I assume it has to do something with your cookie script
Seems that you’ve secured the page with an SSO/login. So unfortunately nobody from outside your company can access the page anymore.
Beside that - how did you implement the CTA into your page?
Hello @Anton , I’m from the Dev team with Claudia. So, related to that issue, I will explain it more to you. I debug it in the browser using some breakpoints, and I saw that sometimes the createViews function from the web-interactive-embed.js file is creating the iframe and it’s removed in the process of creating it. Sometimes it’s not removed, but it’s kept with visibility hidden. (check the screenshot below)