Couldn't find target container #hbspt-form-XXXX for HubSpot Form XXXX. Not rendering form onto the page
resolver
Seems like this has been a topic before, but not finding a solution that works - same exact issue as Couldn't find target container #hbspt-form-xxx, form is created and I can see it being rendered on the page, but the console is telling me that it's NOT rendered and thus submissions don't work at all.
Couldn't find target container #hbspt-form-XXXX for HubSpot Form XXXX. Not rendering form onto the page
resolver
Hi @kyle_conrad, a few things here. I can see that you're using the shell.js file in conjunction with current.js? If so, when I go to your portal to grab the embed code, I'm only seeing that we should be including shell.js. The second thing which is likely the biggest is that your portal is currently on Marketing Starter. Marketing Starter portals do not have access to editing the embed code as per the yellow notice at the top here: https://developers.hubspot.com/docs/methods/forms/advanced_form_options
When I use your embed code on a live page of mine here, and hardcode the values your php script is running, my form renders. Your HubSpot form appears to be hidden by CSS:
Couldn't find target container #hbspt-form-XXXX for HubSpot Form XXXX. Not rendering form onto the page
resolver
Hi @kyle_conrad, a few things here. I can see that you're using the shell.js file in conjunction with current.js? If so, when I go to your portal to grab the embed code, I'm only seeing that we should be including shell.js. The second thing which is likely the biggest is that your portal is currently on Marketing Starter. Marketing Starter portals do not have access to editing the embed code as per the yellow notice at the top here: https://developers.hubspot.com/docs/methods/forms/advanced_form_options
When I use your embed code on a live page of mine here, and hardcode the values your php script is running, my form renders. Your HubSpot form appears to be hidden by CSS:
Couldn't find target container #hbspt-form-XXXX for HubSpot Form XXXX. Not rendering form onto the page
resolver
Ah, thanks so much for the help! Totally didn't realize that the client was on Starter and that they didn't have the ability to edit the embed code - will circle back with them on that front. Really appreciate it.