CMS Development

panlau
Participant

Form doesn't display on modal on external website

I am trying to use modal to display different Hubspot forms on the page. The modal works fine and can display text and image content.  But, none of the Hubspot form can be displayed within the modal. I viewed the souce code and the Hubspot script doesn't seem to run properly. Here is the page url, https://activity.alibaba.com/ggs/test101.html. Please advise.

8 Replies 8
RVatalaro3
Participant

Form doesn't display on modal on external website

Having the same problem

 

0 Upvotes
louischausse
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Form doesn't display on modal on external website

Hi @panlau 

Are you using the HubSpot embed code?

 

https://knowledge.hubspot.com/forms/how-can-i-share-a-hubspot-form-if-im-using-an-external-site

 

Don't forget to mark my reply as a solution if you are satisfied. If not, do not hesitate to ask me anything!

Louis Chaussé from Auxilio HubSpot Solutions Partner Signature
Louis Chaussé from Auxilio HubSpot Solutions Partner Meeting link
panlau
Participant

Form doesn't display on modal on external website

@louischausse Thanks for your response. I installed the code as instructed on the page, but the hubspot form still doesn't display on the page.

0 Upvotes
louischausse
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Form doesn't display on modal on external website

Hey @panlau 

As requested by @Kevin-C , can we see your code so we can give more tailored advices.

 

Best,

Louis Chaussé from Auxilio HubSpot Solutions Partner Signature
Louis Chaussé from Auxilio HubSpot Solutions Partner Meeting link
Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

Form doesn't display on modal on external website

Hey @panlau 

 

Could you provide us the code that you are using? And how you are implementing it if it goes beyond the markup.

Be sure not to include you hubspot portal id for security reasons.

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
natsumimori
Community Manager
Community Manager

Form doesn't display on modal on external website

Hi @panlau , thank you for reaching out to the HubSpot Community.

 

@Kevin-C and @louischausse , could you share your knowledge for @panlau ?

Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

Form doesn't display on modal on external website

Thanks @natsumimori 

 

Hey @panlau 

 

I'm logging an error from your script. Maybe that element is not being generated and therefore it can't add the form as a child?  Screenshot below:

Screeenshot - 2020-08-07 at 8.48.54 AM.png

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
panlau
Participant

Form doesn't display on modal on external website

@Kevin-C Thanks for your response. You are right, Somehow the hubspot script doesn't continue to run and generate the elements when I view the source of the page. What do you suggest to fix it or any other alternatives? Thanks!

0 Upvotes