Formcrafts - a form and survey platform for Salesforce, HubSpot, etc
  1. Templates
    1. All templates illustration
      All templates
    2. Application forms illustration
      Application forms
    3. Calculation forms illustration
      Calculation forms
    4. Lead generation forms illustration
      Lead generation forms
    5. Customer service illustration
      Customer service
    6. Evaluation forms illustration
      Evaluation forms
    7. Survey and feedback illustration
      Survey and feedback
    8. Operations forms illustration
      Operations forms
    9. Payment forms illustration
      Payment forms
    10. Booking and registration illustration
      Booking and registration
    11. Salesforce forms illustration
      Salesforce forms
    12. Other forms illustration
      Other forms
  2. Features
    1. 18 Form Fields illustration
      18 Form Fields
    2. 19 Integrations illustration
      19 Integrations
    3. Conditional Logic illustration
      Conditional Logic
    4. Multi-step Forms illustration
      Multi-step Forms
    5. Calculations illustration
      Calculations
    6. Partial Submissions illustration
      Partial Submissions
    7. Save & Resume illustration
      Save & Resume
    8. Payments illustration
      Payments
    9. Hidden Fields illustration
      Hidden Fields
    10. Dynamic Dropdowns illustration
      Dynamic Dropdowns
    11. Engagement analysis illustration
      Engagement analysis
    12. Multilingual forms illustration
      Multilingual forms
  3. Pricing
  4. Help
  5. Login
  6. Signup
    →
  • Help index
  • Features
    • Conditional logic
    • Prefill forms
    • Multi-step forms
    • Calculations
    • Partial submissions
    • Field references
    • Save and resume
    • Hidden fields
    • Dynamic lookup
    • Workflows
    • Dynamic dropdowns
    • Multilingual forms
    • Privacy mode
    • Success message
    • Form redirect
    • GA/GTM
    • Accept payments
    • Linked forms
    • Disable form
  • Styling
    • Custom CSS
    • Custom fonts
    • Color scheme
    • Form background
  • Analytics
    • Test mode
    • Overview
    • Field analytics
    • Form engagement
  • Workflows
    • Send emails
    • Form redirect
    • Success message
    • Webhooks
    • Create PDF
    • ActiveCampaign
    • Asana
    • Mailchimp
    • Front app
    • Freshdesk
    • Google Sheets
    • Pipedrive
    • Linear
    • Klaviyo
  • Sharing
    • Custom form link
    • Embed on a page (inline)
    • Embed on a page (popup)
    • Embed in emails
    • Embed on WordPress
    • Embed on Shopify
    • Embed on Squarespace
  • Salesforce
    • Overview
    • Create records
    • Update records
    • Related records
    • Dynamic picklists
    • Attach files
    • Create PDFs
    • Form prefill
  • HubSpot
    • Overview
    • Create contact form
    • Create lead capture form
    • Create customer survey
    • Prefill HubSpot form
    • Embed on HubSpot page
    • Uninstall
  • Zendesk
    • Create ticket form
    • Create CSAT survey
    • Embed on Help Center
    • Prefill ticket form
  • Admin
    • Users
    • Custom domain
    • Vanity subdomain
    • Subscription
  • Developers
    • Embed Library
    • API keys
    • API v1
    • API v2
  • Others
    • Partner program
    • GDPR compliance
    • Workflow logs
    • White labeling
    • Form speed
    • Zapier
    • Migration
  • Contact
  1. Help
  2. ›
    HubSpot
  3. ›
    Embed on HubSpot page

How to Embed Forms on a HubSpot Page

On this page
  1. Creating a form
  2. Copy embed code
  3. Edit the HubSpot page
  4. Preview the embedded form

Creating a form

We have covered creating a contact form, creating a lead capture form, and creating customer surveys for HubSpot in our previous articles.

Now, we will learn how to embed an external form on a HubSpot website, or HubSpot landing page. These instructions are for embedding Formcrafts’ forms but would work for any external form.

Before you start, you have to first mark formcrafts.com as a site domain in HubSpot. You can do this in HubSpot via Settings > Tracking and Analytics > Tracking Code > Advanced Tracking > Additional Site Domains. Learn more here ↗.

Copy embed code

In the Formcrafts form editor, click on Share → Embed on a page on the top of the page. Embed codes offer several configuration options:

Embed type: You can choose to embed your form inline, or as a popup which would appear when a user clicks on a button or link.

Form width: You can set the width of the form in pixels or percentage. Leaving it blank will make the form take the full width of the container.

Seamless: This option will remove the borders and background of the form, making it look like it’s a part of the page.

Center align: This option will center align the form on the page.

To copy the embed code, click on the Copy code button.

Screenshot of the embed page where users can find form embed codes
Finding the embed code in Formcrafts

The above example will give us the JavaScript embed code, which is the recommended way to embed forms. An iframe embed code is also available, but it should only be used if the JavaScript code doesn't work for some reason.

Edit the HubSpot page

Edit the HubSpot website page or landing page where you wish to embed the form. Now add a Rich Text block where you want to embed the form.

Click on this block and go to Advanced → Source code, and paste the embed code you copied earlier, and click on Save changes.

HubSpot page editor with Rich Text block

Preview the embedded form

Click on the Preview button on the top right corner to see how the form looks on the page.

This is how an inline form would look on the page.

HubSpot page preview with inline embedded form

If you have chosen a popup form, it would look like this, once you click on the button or link.

HubSpot page preview with popup embedded form

HubSpot uses a cookie called hubspotutk to track visitors. If you are embedding a form on a HubSpot page, Formcrafts will automatically capture this cookie and associate it with the contact. This way, you can track the visitor's activity on the page and personalize their experience.

Minimal, fast, and powerful. Try now.
Formcrafts - a form and survey platform for Salesforce, HubSpot, etc

Subtle Web Inc,
225 Railway St E,
T4C 2C3, Cochrane AB

Salesforce AppExchange partner logo HubSpot app partner logo
Templates
Application formsLead generation formsSurvey & feedback formsEvaluation formsSupport request formsBooking & registrationContact forms
Comparisons
vs AllFormAssemblyTypeformJotformWufooSurveyMonkey
Features
Conditional logicSalesforce formsHubSpot formsZendesk ticket formsEmail formsIntegrationsForm fields
Resources
Help centerBlogDeveloper APIGDPRStatusReport abuseContact us
Company
About usNonprofitCase studiesSecurityTerms and privacy