APIs & Integrations

RHassan
Mitglied

Couldnt Find Target Container

lösung

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 Akzeptierte Lösung
RHassan
Lösung
Mitglied

Couldnt Find Target Container

lösung

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
 

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten
RHassan
Lösung
Mitglied

Couldnt Find Target Container

lösung

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
HubSpot-Produktteam
HubSpot-Produktteam

Couldnt Find Target Container

lösung

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

 

 

0 Upvotes