# Email subject replaced with leadfield

**URL:** <https://forum.mautic.org/t/email-subject-replaced-with-leadfield/3202>\
**Category:** Product Support\
**Created:** [January 11, 2016, 4:10pm UTC](https://forum.mautic.org/t/email-subject-replaced-with-leadfield/3202 "2016-01-11T16:10:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ehill](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@ehill](https://forum.mautic.org/u/ehill)\
**Post date:** [January 11, 2016, 4:10pm UTC](https://forum.mautic.org/t/email-subject-replaced-with-leadfield/3202/1 "2016-01-11T16:10:20Z")

</div>

I know I have seen this addressed before but can’t find it. We had the following subject line “Buy before Midnight”.  
  
  
  
When the email was received it has done the following “Buy before M{leadfield ID}night” replacing ID with the actual lead field ID.  
  
  
  
Has this been addressed? Where is the problem?

---

<div class="post-metadata">

**Author:** ![ehill](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@ehill](https://forum.mautic.org/u/ehill)\
**Post date:** [January 11, 2016, 4:10pm UTC](https://forum.mautic.org/t/email-subject-replaced-with-leadfield/3202/2 "2016-01-11T16:10:20Z")

</div>

I know I have seen this addressed before but can’t find it. We had the following subject line “Buy before Midnight”.

When the email was received it has done the following “Buy before M{leadfield ID}night” replacing ID with the actual lead field ID.

Has this been addressed? Where is the problem?

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [January 11, 2016, 4:17pm UTC](https://forum.mautic.org/t/email-subject-replaced-with-leadfield/3202/3 "2016-01-11T16:17:35Z")

</div>

The syntax should be {leadfield=FIELD\_ALIAS}, replace the FIELD\_ALIAS with that of the desired field.

---

<div class="post-metadata">

**Author:** ![ehill](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@ehill](https://forum.mautic.org/u/ehill)\
**Post date:** [January 11, 2016, 4:29pm UTC](https://forum.mautic.org/t/email-subject-replaced-with-leadfield/3202/4 "2016-01-11T16:29:33Z")

</div>

@alanhartless I am not understanding. We just want the string ‘Midnight’ to appear in the subject line without having the ‘id’ replaced with the lead field ID.

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [January 11, 2016, 4:46pm UTC](https://forum.mautic.org/t/email-subject-replaced-with-leadfield/3202/5 "2016-01-11T16:46:33Z")

</div>

OH! Sorry, totally mis-read. That is an odd one that I can’t reproduce. A field shouldn’t be inserted unless you manually typed {. Does it happen every time you edit the subject back to “Midnight” and save?

---

<div class="post-metadata">

**Author:** ![ehill](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@ehill](https://forum.mautic.org/u/ehill)\
**Post date:** [January 11, 2016, 4:57pm UTC](https://forum.mautic.org/t/email-subject-replaced-with-leadfield/3202/6 "2016-01-11T16:57:33Z")

</div>

@alanhartless  
We are using 1.2.2.  
This was a list email. We pasted the HTML into the source code. We typed this into the subject line “Kickoff To Supercross Savings End At Midnight!”

The ID in ‘Midnight’ was replaced. I will create another test.

---

<div class="post-metadata">

**Author:** ![ehill](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@ehill](https://forum.mautic.org/u/ehill)\
**Post date:** [January 11, 2016, 5:02pm UTC](https://forum.mautic.org/t/email-subject-replaced-with-leadfield/3202/7 "2016-01-11T17:02:59Z")

</div>

@alanhartless

just ran another test and got this in the subject line:

Kickoff To Supercross Savings End At M61578night!

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [January 11, 2016, 7:05pm UTC](https://forum.mautic.org/t/email-subject-replaced-with-leadfield/3202/8 "2016-01-11T19:05:39Z")

</div>

When you edit the email, does it have the {leadfield=ID} syntax still in the subject?

---

<div class="post-metadata">

**Author:** ![ehill](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@ehill](https://forum.mautic.org/u/ehill)\
**Post date:** [January 11, 2016, 11:18pm UTC](https://forum.mautic.org/t/email-subject-replaced-with-leadfield/3202/9 "2016-01-11T23:18:26Z")

</div>

At no time do we insert {leadfield=ID} syntax in the subject or the body of the email. We do have two external links that go to forms requiring Mautic to autopopulate with the unique tracking ID but this is not relevant.

---

<div class="post-metadata">

**Author:** ![ehill](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@ehill](https://forum.mautic.org/u/ehill)\
**Post date:** [January 12, 2016, 5:02pm UTC](https://forum.mautic.org/t/email-subject-replaced-with-leadfield/3202/10 "2016-01-12T17:02:11Z")

</div>

@alanhartless Any further thoughts?
