Can I use a HubSpot form on my external site?

Last updated: December 13, 2016

Available For:

Marketing: Basic, Pro, Enterprise
Sales: N/A

Forms can be added to external websites with our JavaScript embed code. An advantage of using JavaScript here is any change made to the form within HubSpot will be automatically reflected on the form on your external site (Note: If you added a Salesforce campaign to your form, the form's embed code will be updated. In this case you would need to re-add the code to your external site).

To find the embed code follow the below instructions:

  • Navigate to Contacts > Forms.
  • Click on the name of the form in question.
User-added image
Select the Embed tab.
  • Specify a Redirect URL - where you want to redirect your visitor after they fill out your form (this is required).
  • Click Copy embed code button and paste into the HTML body of your website.
User-added image
User-added image
  • Click Save form.

Please see this article for information on how to style and customize embedded forms.