# Code example for adding a custom setting to a core / existing Field?

**URL:** <https://community.gravityforms.com/t/code-example-for-adding-a-custom-setting-to-a-core-existing-field/638>\
**Category:** Get Help\
**Tags:** custom, gf\_field\_email\
**Created:** [December 20, 2018, 2:37pm UTC](https://community.gravityforms.com/t/code-example-for-adding-a-custom-setting-to-a-core-existing-field/638 "2018-12-20T14:37:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AtomicPink](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/atomicpink/32/266_2.png) [@AtomicPink](https://community.gravityforms.com/u/AtomicPink)\
**Post date:** [December 20, 2018, 2:37pm UTC](https://community.gravityforms.com/t/code-example-for-adding-a-custom-setting-to-a-core-existing-field/638/1 "2018-12-20T14:37:46Z")

</div>

I’m trying to extend the existing GF\_Field\_Email field **without creating a new custom field**. The only examples I have found are for adding custom settings to ALL form fields - but I only want the new option to show up for the built-in Email form field. I am creating a full custom plugin for GF and have that all set-up, I just have no idea how to include this ^

Thanks in advance \<3

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/david/32/2517_2.png) [@david](https://community.gravityforms.com/u/david)\
**Post date:** [December 20, 2018, 6:22pm UTC](https://community.gravityforms.com/t/code-example-for-adding-a-custom-setting-to-a-core-existing-field/638/2 "2018-12-20T18:22:11Z")

</div>

To clarify, you want to add a custom setting in the Form Editor’s field settings for the Email field? Something like this?

[https://gwiz.io/2PRsXwb](https://gwiz.io/2PRsXwb)

---

<div class="post-metadata">

**Author:** ![AtomicPink](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/atomicpink/32/266_2.png) [@AtomicPink](https://community.gravityforms.com/u/AtomicPink)\
**Post date:** [December 20, 2018, 8:48pm UTC](https://community.gravityforms.com/t/code-example-for-adding-a-custom-setting-to-a-core-existing-field/638/3 "2018-12-20T20:48:36Z")

</div>

Yup! The image is broken but your synopsis is correct.

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/david/32/2517_2.png) [@david](https://community.gravityforms.com/u/david)\
**Post date:** [December 21, 2018, 4:34pm UTC](https://community.gravityforms.com/t/code-example-for-adding-a-custom-setting-to-a-core-existing-field/638/4 "2018-12-21T16:34:02Z")

</div>

This is pretty old (and it looks like the code formatting is a little wonky) but it’s still the most thorough walkthrough on creating custom field settings for Gravity Forms: [https://wpsmith.net/2011/how-to-create-a-custom-form-field-in-gravity-forms-with-a-terms-of-service-form-field-example/](https://wpsmith.net/2011/how-to-create-a-custom-form-field-in-gravity-forms-with-a-terms-of-service-form-field-example/)

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 4, 2022, 5:36pm UTC](https://community.gravityforms.com/t/code-example-for-adding-a-custom-setting-to-a-core-existing-field/638/5 "2022-01-04T17:36:07Z")

</div>


