APIs & Integrations

adsa1w
Member

Embed form in Website

Hello, I can embed a form only as an Iframe and not as a script How to do it?
I want to embed a form on an existing site, and not refer to another link, but as an iframe and not a script.

0 Upvotes
4 Replies 4
CVoigt
Member

Embed form in Website

you can use online Iframe generator tool to create iframe.

0 Upvotes
adsa1w
Member

Embed form in Website

There is another problem. In embedding the form in this way - there is a #form-target {
padding: 40px;
}
It should be 0. Otherwise it also looks bad.
How to solve this too?

0 Upvotes
adsa1w
Member

Embed form in Website

@Bryantworks Thank you for your reply. I tried it but it creates another problem, that there is a large part empty from above, until the beginning of the form. So it sits badly on the page.
How can I set some px from top in the link of the form that will not see in the iframe embed?

0 Upvotes
Bryantworks
Key Advisor | Diamond Partner
Key Advisor | Diamond Partner

Embed form in Website

Hey @adsa1w,

 

This requires a bit of customization but you can do so!  Here's how to do it:

 

1 - View the form URL:

 

Forms+_+HubSpot+-+Google+Chrome+2021-02-16+at+11.50.34+AM.png

 

2 - Copy the URL in the address bar:  

 

__share.hsforms 2021-02-16 at 11.51.36 AM.com_1KwaljV47R5ugh42TUD-h-g4h8xp - Google Chrome.png

 

3 - Head to https://www.iframe-generator.com/  and paste in your URL that you copied in the previous step.

 

4 - Generate your iframe:

iFrame Generator - Free Online iFrame Code Maker Tool - Google Chrome 2021-02-16 at 11.51.55 AM.png

 

Hope this helps!

 

 

Chris Bryant | Your Dedicated HubSpot Expert