# Image URLs as Custom Fields

**URL:** https://forum.mautic.org/t/image-urls-as-custom-fields/2597
**Category:** Product Support
**Created:** [October 22, 2015, 9:11pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597 "2015-10-22T21:11:28Z")
**Posts on this page:** 16
**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: [October 22, 2015, 9:11pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/1 "2015-10-22T21:11:28Z")

</div>

We are wondering if anyone has had experience in creating custom fields with image URLs and specifically including those in a dynamic emails as {leadfield = imageURL} and how this was implemented.  
  
  
  
thanks

---

<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: [October 22, 2015, 9:11pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/2 "2015-10-22T21:11:29Z")

</div>

We are wondering if anyone has had experience in creating custom fields with image URLs and specifically including those in a dynamic emails as {leadfield = imageURL} and how this was implemented.

thanks

---

<div class="post-metadata">

### Author: ![waxwing](https://avatars.discourse-cdn.com/v4/letter/w/8e7dd6/32.png) [@waxwing](https://forum.mautic.org/u/waxwing)
#### Post date: [October 22, 2015, 9:40pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/3 "2015-10-22T21:40:31Z")

</div>

I dropped in HTML for Facebook links so that we could dynamically display those and it worked great. HTML code for images should work just as well.

---

<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: [October 22, 2015, 10:02pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/4 "2015-10-22T22:02:47Z")

</div>

@waxwing do you have an example? Maybe I wasn’t clear but I am looking for dynamic populating of images in the same way you would do {leadfield=Firstname} as a token.

---

<div class="post-metadata">

### Author: ![waxwing](https://avatars.discourse-cdn.com/v4/letter/w/8e7dd6/32.png) [@waxwing](https://forum.mautic.org/u/waxwing)
#### Post date: [October 22, 2015, 10:07pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/5 "2015-10-22T22:07:42Z")

</div>

I just dropped the HTML image code right into the custom field. It rendered just fine.

---

<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: [October 23, 2015, 8:24am UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/6 "2015-10-23T08:24:17Z")

</div>

There was a bug in 1.2.0 which destroyed a HTML tag if the leadfield variable was a part of an attribute. I tested it with a link tag. But it should work in 1.2.1. @ehill , after you test it, please, let us know if it works. The best would be also to add a note to [documentation](https://github.com/mautic/documentation) so others could save some testing time.

---

<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: [October 23, 2015, 1:49pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/7 "2015-10-23T13:49:16Z")

</div>

@escopecz Great thanks. As we upgrade, let me describe what we are doing. We are adding URL to an Image Custom Field in order to populate each recipient with their own personal image. Obviously the bug is a problem, but in principle the fix should support this use case, correct?

---

<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: [October 23, 2015, 2:01pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/8 "2015-10-23T14:01:48Z")

</div>

Yep, I think so. 1.2.1 should be out any time now.

---

<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: [October 23, 2015, 2:07pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/9 "2015-10-23T14:07:15Z")

</div>

@escopecz great news…it was the one thing that was causing us extreme heart ache

---

<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: [October 23, 2015, 4:23pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/10 "2015-10-23T16:23:14Z")

</div>

@escopecz do you know when the release will occur?

---

<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: [October 23, 2015, 5:51pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/11 "2015-10-23T17:51:49Z")

</div>

It’s been released already [https://github.com/mautic/mautic/releases](https://github.com/mautic/mautic/releases). So far as update package it seems. You should see an icon in the notification area of your Mautic. Log out and back in if not.

---

<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: [October 23, 2015, 7:05pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/12 "2015-10-23T19:05:48Z")

</div>

@escopecz any test cases that are appropriate or is there a Github bug #? suggestions?

---

<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: [October 23, 2015, 8:02pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/13 "2015-10-23T20:02:20Z")

</div>

I don’t follow. Could you rephrase your question?

---

<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: [October 24, 2015, 10:50am UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/14 "2015-10-24T10:50:40Z")

</div>

@escopecz Sorry. You said that we could help test and provide feedback. I wanted you to point me to the Github fix # or a test case so I could understand the specific functionality that was fixed and therefore insure that I am adequately testing against that.

---

<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: [October 26, 2015, 8:19am UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/15 "2015-10-26T08:19:48Z")

</div>

Oh, well, I thought you’ll test the problem you’d described here, but if you want to know more about testing, I’m glad.

All opened pull requests are here:

[https://github.com/mautic/mautic/pulls?q=is%3Apr+is%3Aopen](https://github.com/mautic/mautic/pulls?q=is%3Apr+is%3Aopen)

Here is a short tutorial about how to test those:

[https://github.com/mautic/mautic#how-to-test-a-pull-request](https://github.com/mautic/mautic#how-to-test-a-pull-request)

The PR I was talking about that should fix your issue is here:

[https://github.com/mautic/mautic/pull/920](https://github.com/mautic/mautic/pull/920)

It had been merged to 1.2.1 already.

---

<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:57pm UTC](https://forum.mautic.org/t/image-urls-as-custom-fields/2597/16 "2020-02-02T22:57:36Z")

</div>


