# Avoid creation of clickable links in forms

**URL:** <https://community.gravityforms.com/t/avoid-creation-of-clickable-links-in-forms/11504>\
**Category:** Get Help\
**Tags:** gform\_merge\_tag\_filter, links, spam\
**Created:** [December 29, 2021, 11:47am UTC](https://community.gravityforms.com/t/avoid-creation-of-clickable-links-in-forms/11504 "2021-12-29T11:47:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andre\_B](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Andre\_B](https://community.gravityforms.com/u/Andre_B)\
**Post date:** [December 29, 2021, 11:47am UTC](https://community.gravityforms.com/t/avoid-creation-of-clickable-links-in-forms/11504/1 "2021-12-29T11:47:35Z")

</div>

Is there a way to avoid clickable links being sent?  
Like don’t create a link from a submitted URL or email address? But send it as text only?

I couldn’t find anything about. Your help is appreciated.

---

<div class="post-metadata">

**Author:** ![sacom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/sacom/32/53_2.png) [@sacom](https://community.gravityforms.com/u/sacom)\
**Post date:** [December 29, 2021, 4:06pm UTC](https://community.gravityforms.com/t/avoid-creation-of-clickable-links-in-forms/11504/2 "2021-12-29T16:06:40Z")

</div>

Are you talking about the notification email content or the admin interface?

---

<div class="post-metadata">

**Author:** ![Andre\_B](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Andre\_B](https://community.gravityforms.com/u/Andre_B)\
**Post date:** [December 29, 2021, 4:18pm UTC](https://community.gravityforms.com/t/avoid-creation-of-clickable-links-in-forms/11504/3 "2021-12-29T16:18:52Z")

</div>

Yeah, I’m talking about the notification emails. Is there a way to keep URLs or email addresses from automatically converting to clickable links?

---

<div class="post-metadata">

**Author:** ![sacom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/sacom/32/53_2.png) [@sacom](https://community.gravityforms.com/u/sacom)\
**Post date:** [December 29, 2021, 4:38pm UTC](https://community.gravityforms.com/t/avoid-creation-of-clickable-links-in-forms/11504/4 "2021-12-29T16:38:22Z")

</div>

You can use the following snippet to make the {all\_fields} merge tag return the plain text value for emails and website fields.

```auto
add_filter( 'gform_merge_tag_filter', 'return_raw_email_all_fields', 10, 6 );
function return_raw_email_all_fields( $value, $merge_tag, $modifier, $field, $raw_value, $format ) {
	// Return raw value for email and website fields.
	if ( $merge_tag == 'all_fields' && ( $field->type == 'email' || $field->type == 'website' ) ) {
		return $raw_value;
	}
	// Other field type, return default value.
	return $value;
}

```

But note that most browsers automatically make emails and URLs clickable, so you may still see emails and links clickable.

---

<div class="post-metadata">

**Author:** ![Andre\_B](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Andre\_B](https://community.gravityforms.com/u/Andre_B)\
**Post date:** [December 29, 2021, 5:13pm UTC](https://community.gravityforms.com/t/avoid-creation-of-clickable-links-in-forms/11504/5 "2021-12-29T17:13:04Z")

</div>

Thanks a lot. I’ll give it a try.

---

<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 28, 2022, 5:13pm UTC](https://community.gravityforms.com/t/avoid-creation-of-clickable-links-in-forms/11504/6 "2022-01-28T17:13:41Z")

</div>

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