# Link to map in notification email not working

**URL:** <https://community.gravityforms.com/t/link-to-map-in-notification-email-not-working/18776>\
**Category:** Get Help\
**Tags:** google-maps, address-field, map-it, gform\_disable\_address\_map\_link\
**Created:** [January 17, 2025, 12:58am UTC](https://community.gravityforms.com/t/link-to-map-in-notification-email-not-working/18776 "2025-01-17T00:58:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@ben](https://community.gravityforms.com/u/ben)\
**Post date:** [January 17, 2025, 12:58am UTC](https://community.gravityforms.com/t/link-to-map-in-notification-email-not-working/18776/1 "2025-01-17T00:58:21Z")

</div>

Hi everyone,

I found a similar issue discussed here: [Link to Map in Notification Email - Resolved](https://community.gravityforms.com/t/link-to-map-in-notification-email-resolved/14715).

I’m using Address Fields along with the “Autocomplete” perk, which works great on my form. For email notifications, I use the `{all_fields}` merge tag since my form contains around 100 questions, and I only need the submitted responses in the email.

However, in the notification email, there’s a clickable URL labeled “Map It” displayed just below the address. When I click it, the link doesn’t work. It redirects to a long GUID URL starting with “url6011” instead of a Google Maps link.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/3X/a/3/a31c0d9ce1f897beb9032baf2db38a43cbcf7bd4.png)

While I don’t _need_ this feature, it would be nice to have it working.

So, my questions are:

**1. How can I remove the “Map It” link from the email?**  
I’ve already tried [this snippet](https://gist.github.com/kenmasters/1ae439d495e1721ecbb079e32b3a64b2), but it didn’t work.

**2. How can I fix the “Map It” link so that it works correctly?**

Thanks in advance for your help!

Ben

---

<div class="post-metadata">

**Author:** ![toothless](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/toothless/32/15995_2.png) [@toothless](https://community.gravityforms.com/u/toothless)\
**Post date:** [January 17, 2025, 1:11pm UTC](https://community.gravityforms.com/t/link-to-map-in-notification-email-not-working/18776/2 "2025-01-17T13:11:51Z")

</div>

Hi Ben,

1. While you’d like to remove the “Map It” text, what new text would you like to use?
2. Did the third code not work for you from the following post?

> [@Link to map in notification email \[RESOLVED\]](https://community.gravityforms.com/t/link-to-map-in-notification-email-resolved/14715):
>
> In the form entries, there is a “map it” link to show the address in google maps, Is there a way to get this added to the notification emails?

---

<div class="post-metadata">

**Author:** ![ben](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@ben](https://community.gravityforms.com/u/ben)\
**Post date:** [January 17, 2025, 1:39pm UTC](https://community.gravityforms.com/t/link-to-map-in-notification-email-not-working/18776/3 "2025-01-17T13:39:42Z")

</div>

Thank you for your reply!

I might not have been clear earlier—I simply want to remove, hide, or delete the text from the email notification so it’s not included at all.

However, since I can’t create a custom email notification (due to the large number of fields, with only about 50% of them being filled, which I forgot to mention), I have to use the `{all_fields}` tag in the email layout. Unfortunately, this tag automatically includes the “Map it” text.

As for your second question, I’m not entirely sure where to place the code.

If I create a new email notification message, insert `{all_fields}`, and also add the code you mentioned (`<a href="https://www.google.com/maps?q={Street:1},{City:2},{Country:3}">Map It</a>`), wouldn’t both the non-working “Map it” text (included via `{all_fields}`) and the functional version from the code appear in the email?

I hope that makes sense and isn’t too confusing! 😊

---

<div class="post-metadata">

**Author:** ![uamv](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/uamv/32/1412_2.png) [@uamv](https://community.gravityforms.com/u/uamv)\
**Post date:** [January 17, 2025, 5:16pm UTC](https://community.gravityforms.com/t/link-to-map-in-notification-email-not-working/18776/4 "2025-01-17T17:16:02Z")

</div>

You can make use of the filter [gform\_disable\_address\_map\_link](https://docs.gravityforms.com/gform_disable_address_map_link/):

```auto
add_filter( 'gform_disable_address_map_link', '__return_true' );

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [January 29, 2025, 12:35pm UTC](https://community.gravityforms.com/t/link-to-map-in-notification-email-not-working/18776/5 "2025-01-29T12:35:53Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
