- Knowledge Base
- Marketing
- Forms
- Associate forms with Salesforce campaigns
Associate forms with Salesforce campaigns
Last updated: June 16, 2025
Available with any of the following subscriptions, except where noted:
-
Marketing Hub Professional, Enterprise
-
Content Hub Professional, Enterprise
If you have the HubSpot-Salesforce integration enabled, you can associate a form with an active Salesforce campaign.
Before you get started
Before associating your form with a Salesforce campaign, do note the following:- The campaign status will be set to Responded and cannot be edited. If you want to edit the campaign status going forward, consider using a workflow to associate your contacts with your Salesforce campaign.
- The contact's association with the Salesforce campaign cannot be removed.
- Forms submitted using a share link cannot be associated with a Salesforce campaign.
- If you're embedding a form on an external page:
- If you're using the legacy form editor, you can add contacts to a Salesforce campaign directly within the form tool. This option is not available in the updated form editor.
- If you're using the updated form editor, it's recommended to use a workflow to associate your contacts with your Salesforce campaign.
Associate a form on a HubSpot page with a Salesforce campaign
After adding a form module to your HubSpot page, you can associate forms built in the legacy form editor and the updated form editor with Salesforce campaigns. To associate a form on a HubSpot page with a Salesforce campaign:
- Navigate to your content:
- Website Pages: In your HubSpot account, navigate to Content > Website Pages.
- Landing Pages: In your HubSpot account, navigate to Content > Landing Pages.
- Click the name of your page.
- In the content editor, click the form module.
- In the left panel, scroll down and click the Salesforce campaign dropdown menu and select the Salesforce campaign to associate the form with.
- In the upper right, click Publish or Update to take your changes live.
Form (legacy) embedded on an external page
- In your HubSpot account, navigate to Marketing > Forms.
- Hover over the form name and click Edit.
- In the upper right, click Share.
- In the dialog box, under Embed code, click the Add contacts to a Salesforce campaign dropdown menu and select the Salesforce campaign to associate the form with.
- Click Copy.
- Paste the embed code in the HTML of your external page.
Please note: these changes will not automatically update existing forms embedded on your external pages. You must replace the embed code for each existing form with the new embed code that contains the selected Salesforce campaign.
Forms
Integrations
Thank you for your feedback, it means a lot to us.
This form is used for documentation feedback only. Learn how to get help with HubSpot.