# Adding salesforce campaign to a form

**URL:** <https://community.hubspot.com/t/adding-salesforce-campaign-to-a-form/21770>\
**Category:** CMS Development\
**Tags:** forms\
**Created:** [June 16, 2020, 7:23pm UTC](https://community.hubspot.com/t/adding-salesforce-campaign-to-a-form/21770 "2020-06-16T19:23:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [June 16, 2020, 7:23pm UTC](https://community.hubspot.com/t/adding-salesforce-campaign-to-a-form/21770/1 "2020-06-16T19:23:35Z")

</div>

Heyo friends!

It looks like we have a new forms editor in the content editor and it looks pretty spiffy. BUT, looks like I cannot add a salesforce campaign to it 😞

With the old version, I would add

`sfdc_campaign="{{ module.salesforcecampaign }}"`

to the form code. I did this, but no dice. Am I missing something or is this a bug?

Thanks!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [June 16, 2020, 8:07pm UTC](https://community.hubspot.com/t/adding-salesforce-campaign-to-a-form/21770/2 "2020-06-16T20:07:31Z")

</div>

i forgot to add the saleforce field (which is a thing!)

```auto
{
 "id": "salesforce.campain",
 "name": "salesforcecampaign",
 "label": "Salesforce campaign",
 "required": false,
 "locked": false,
 "type": "salesforcecampaign",
 "default": null
 } 

```

---

<div class="post-metadata">

**Author:** ![aschurr](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aschurr/32/86357_2.png) [@aschurr](https://community.hubspot.com/u/aschurr)\
**Post date:** [October 15, 2020, 11:14pm UTC](https://community.hubspot.com/t/adding-salesforce-campaign-to-a-form/21770/3 "2020-10-15T23:14:09Z")

</div>

Hi Dennis,

I think this is what I am hoping to do - but I’m unsure of where you put this code. Can you tell me a little bit more about how you did this, please? I’m looking to essentially assign a Salesforce campaign based on whatever the UTM campaign parameter is in the tracked link someone completes a form with. Do you know if this is doable?

I’m a demand gen marketer at heart but trying to bridge a marketing ops gap. Any advice is appreciated. thanks!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [October 16, 2020, 5:38pm UTC](https://community.hubspot.com/t/adding-salesforce-campaign-to-a-form/21770/4 "2020-10-16T17:38:19Z")

</div>

Hey @aschurr !

The solution for what i was working with above involved building a custom module that included a form. I am not sure if that is the information you need.

I would recommend asking that question in [this community board](https://community.hubspot.com/t5/Lead-Capture-Tools/bd-p/marketing_conversion)! There are some smart cookies over there.

As for dilemna for being the person who seems to be always filling the gaps. I hear you! We also have an [ops board](https://community.hubspot.com/t5/OpsLife/bd-p/opslife) you may be interested in?

I think this gif sums it up trying to plug all the holes 🙂

![33154i9E848D8404FE26A1.gif](https://d2qpr2jzcazej7.cloudfront.net/original/2X/e/e1c8dcda1758a206ac667c057b67c6cd1dc507da.gif)
