APIs & Integrations

RHassan
Member

Couldnt Find Target Container

SOLVE

the issue is that the console shows an error "Couldn't find target container #contactus for HubSpot Form f2813e10-e6d8-4ece-a0e1-6699178eca69. Not rendering form onto the page f @ shell.js:1 " and if I refresh the page it loads up fine but not on the first load.

 

 

the form is here, https://share.hsforms.com/18oE-EObYTs6g4WaZF47KaQ529gq 

 

 

 

best

Raza

0 Upvotes
1 Accepted solution
RHassan
Solution
Member

Couldnt Find Target Container

SOLVE

Hi @dennisedson ,

 

Thank you. I found a fix, I just pivoted to using the following package

 
import HubspotForm from 'react-hubspot-form'
 
and just put the form id and portal id into it and it works great now.
 
Thank you
 
Raza
 

View solution in original post

2 Replies 2
RHassan
Solution
Member

Couldnt Find Target Container

SOLVE

Hi @dennisedson ,

 

Thank you. I found a fix, I just pivoted to using the following package

 
import HubspotForm from 'react-hubspot-form'
 
and just put the form id and portal id into it and it works great now.
 
Thank you
 
Raza
 
dennisedson
Community Manager
Community Manager

Couldnt Find Target Container

SOLVE

Hi @RHassan 

Welcome to the Community!

Where are you experiencing  this issue?

Two things come to mind without having more details

1.  Trying to edit the embed code, but not on a subscription tier that allows it.  Similar issue here

2.  Rendering issue on external, non HubSpot page.  Solution here

 

 

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show
0 Upvotes