In the left panel, click the Salesforce campaign dropdown menu and select the Salesforce campaign to associate the form with.
Click Apply changes.
In the upper right, clickPublish or Update to take your changes live.
Form embedded on an external page
In your HubSpot account, navigate to Marketing > Lead Capture > Forms.
Hover over the form name and clickActions>Edit form.
In the upper right, click Share.
In the dialog box, click the Add contacts to a Salesforce campaign dropdown menu and select the Salesforce campaign to associate the form with.
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 with the selected Salesforce campaign.
Table of contents/Salesforce/How-do-I-associate-a-form-with-a-Salesforce-campaign?__hstc=20964263.7298848f39b63817bd0ed7ac8a6befcc.1442430697455.1444080254061.1444144558383.36&__hssc=20964263.11.1444144558383&__hsfp=1123080157