APIs & Integrations

RHassan
Membre

Couldnt Find Target Container

Résolue

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 Votes
1 Solution acceptée
RHassan
Solution
Membre

Couldnt Find Target Container

Résolue

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
 

Voir la solution dans l'envoi d'origine

2 Réponses
RHassan
Solution
Membre

Couldnt Find Target Container

Résolue

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
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Couldnt Find Target Container

Résolue

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 Votes