# Using LeadList fields as parameters in link URLs

**URL:** <https://forum.mautic.org/t/using-leadlist-fields-as-parameters-in-link-urls/3025>\
**Category:** Product Support\
**Created:** [December 20, 2015, 11:40pm UTC](https://forum.mautic.org/t/using-leadlist-fields-as-parameters-in-link-urls/3025 "2015-12-20T23:40:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![webadocious](https://avatars.discourse-cdn.com/v4/letter/w/e47774/32.png) [@webadocious](https://forum.mautic.org/u/webadocious)\
**Post date:** [December 20, 2015, 11:40pm UTC](https://forum.mautic.org/t/using-leadlist-fields-as-parameters-in-link-urls/3025/1 "2015-12-20T23:40:35Z")

</div>

Hello - I was wondering if anyone else has struggled getting properly formatted trackable URLs using fields from the lead table.  
  
  
  
Each time we try to insert a lead field into an email it encodes the short-code for the field and the field does not get inserted into the link.  
  
  
  
Example of what we’d like:  
  
  
  
[  
  
   
  
And when we save it in either the builder (through a template) or the email editor it then saves the code like:  
  
   
  
 ](http://www.domain.com/landing-page?utm_term=%7Bleadlist=id%7Ctrue%7D&utm_medium=email&utm_name=GradingYourPerformance&utm_source=%7Bleadlist=email%7D)[  
  
   
  
So that when it actually sends the email and attempts to insert field variables it fails.  
  
   
  
I have looked at  
  
   
  
 ](http://www.domain.com/landing-page?utm_term=%7Bleadlist=id%7D&utm_medium=email&utm_name=GradingYourPerformance&utm_source=%7Bleadlist=firstname%7D)[https://github.com/mautic/mautic/pull/671](https://github.com/mautic/mautic/pull/671)  
  
and  
  
[https://github.com/mautic/mautic/issues/643](https://github.com/mautic/mautic/issues/643)  
  
  
  
which seems to suggest the method would work however no suck luck. Is there a way to not have the editors encode the link? Another method for getting lead fields into a URL?  
  
  
  
Your help greatly appreciated.

---

<div class="post-metadata">

**Author:** ![webadocious](https://avatars.discourse-cdn.com/v4/letter/w/e47774/32.png) [@webadocious](https://forum.mautic.org/u/webadocious)\
**Post date:** [December 20, 2015, 11:40pm UTC](https://forum.mautic.org/t/using-leadlist-fields-as-parameters-in-link-urls/3025/2 "2015-12-20T23:40:35Z")

</div>

Hello - I was wondering if anyone else has struggled getting properly formatted trackable URLs using fields from the lead table.

Each time we try to insert a lead field into an email it encodes the short-code for the field and the field does not get inserted into the link.

Example of what we’d like:

[ 

And when we save it in either the builder (through a template) or the email editor it then saves the code like:

 ](http://www.domain.com/landing-page?utm_term=%7Bleadlist=id%7Ctrue%7D&utm_medium=email&utm_name=GradingYourPerformance&utm_source=%7Bleadlist=email%7D)[ 

So that when it actually sends the email and attempts to insert field variables it fails.

 

I have looked at

 ](http://www.domain.com/landing-page?utm_term=%7Bleadlist=id%7D&utm_medium=email&utm_name=GradingYourPerformance&utm_source=%7Bleadlist=firstname%7D)

[https://github.com/mautic/mautic/pull/671](https://github.com/mautic/mautic/pull/671)  
and  
[https://github.com/mautic/mautic/issues/643](https://github.com/mautic/mautic/issues/643)

which seems to suggest the method would work however no suck luck. Is there a way to not have the editors encode the link? Another method for getting lead fields into a URL?

Your help greatly appreciated.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [December 21, 2015, 9:13am UTC](https://forum.mautic.org/t/using-leadlist-fields-as-parameters-in-link-urls/3025/3 "2015-12-21T09:13:39Z")

</div>

Hi, actually, I didn’t know Mautic has the short codes you’re using: `{leadlist=id|true}`, `{leadlist=email}`. If you want to use lead’s email in the URL, use `{leadfield=email}`.

---

<div class="post-metadata">

**Author:** ![webadocious](https://avatars.discourse-cdn.com/v4/letter/w/e47774/32.png) [@webadocious](https://forum.mautic.org/u/webadocious)\
**Post date:** [December 21, 2015, 3:03pm UTC](https://forum.mautic.org/t/using-leadlist-fields-as-parameters-in-link-urls/3025/4 "2015-12-21T15:03:26Z")

</div>

Ah yes, thank you for the reply escopecz.

That was the issue. Not sure how we ever made the change from leadfield to leadlist but that seems to have solved it. Much appreciated.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:56pm UTC](https://forum.mautic.org/t/using-leadlist-fields-as-parameters-in-link-urls/3025/5 "2020-02-02T22:56:21Z")

</div>


