Forms

How can I share a HubSpot form if I'm using an external site?

Last updated: May 21, 2018

free

If you're using an external site (not hosted on HubSpot), forms can be shared in two ways:

With either method, any change made to the form within HubSpot will be automatically reflected on the form on your external site. The instructions below walk through both methods. 

Embed code 

Please note: if you add a Salesforce campaign to your form, the form's embed code will be changed. In this case, you do need to re-add the code to your external site.

  • In your HubSpot account, navigate to Marketing > Lead Capture > Forms.
  • Click the name of your form.
User-added image
Select the Embed tab.
  • Click the Options tab to customize what will happen after a visitor submits your form. You can choose to redirect your visitors to a thank you page or display an inline thank you message when a visitor submits your form.
  • In the top right corner, click Share. Alternatively, you can click Actions > Share form.
forms-share-button
User-added image
  • In the dialog box under the Embed code tab, click Copy to copy the embed code to your clipboard. You also have the option to select a Salesforce campaign from the dropdown menu, as well as include default styling. 

share-form-dialog-box

  • Click Save and Publish in the top right corner of the screen.
  • Paste the embed code into the desired location of the HTML on your external page. Make sure you've also included your HubSpot tracking code on any external page where you place a HubSpot form. The tracking code will ensure all data submitted on your form gets captured properly.

Standalone form page 

Instead of working with JavaScript, you can instead share your form via a form page, so it will exist on its own page at its own URL.  

  • In your HubSpot account, navigate to Marketing > Lead Capture > Forms
  • Click the name of your form. 
  • In the upper right-hand corner, click Share. Alternatively, you can click Actions > Share form.

forms-share-button

  • In the dialog box under the Share link tab, click Copy to copy the form page's URL to your clipboard.  

share-form-own-page

  • Click Save and Publish in the top right corner of the screen. If you're using HubSpot's free marketing tools or a Marketing Hub Starter account, you'll also see the dialog box after clicking Publish, giving you the option to share your form.
  • Paste your form page's URL in a new window in your browser to see your form's page. You can also share this URL with others so they can access your form. 


Was this article helpful?

If you still need help you can get answers from the , or to contact support.