# Field ID Management feature?

**URL:** <https://community.gravityforms.com/t/field-id-management-feature/4908>\
**Category:** Feature Requests\
**Created:** [May 26, 2020, 9:14am UTC](https://community.gravityforms.com/t/field-id-management-feature/4908 "2020-05-26T09:14:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![deefuz](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/deefuz/32/688_2.png) [@deefuz](https://community.gravityforms.com/u/deefuz)\
**Post date:** [May 26, 2020, 9:14am UTC](https://community.gravityforms.com/t/field-id-management-feature/4908/1 "2020-05-26T09:14:07Z")

</div>

Hello folks,

That would be amazing to manage field ids, especially if you develop custom functions with same field accross all forms. For example it would suggest unused field ID when creating or editing the field, or MAX+1 if all ID are used.

Thanks

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [May 26, 2020, 4:50pm UTC](https://community.gravityforms.com/t/field-id-management-feature/4908/2 "2020-05-26T16:50:05Z")

</div>

Thank you for the suggestion. I will add it to our list of feature requests.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [June 29, 2020, 12:30pm UTC](https://community.gravityforms.com/t/field-id-management-feature/4908/3 "2020-06-29T12:30:06Z")

</div>

@deefuz - we’re trying to flesh out this feature request. Can you explain how you need to use it, and a possible use case? Thank you.

---

<div class="post-metadata">

**Author:** ![deefuz](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/deefuz/32/688_2.png) [@deefuz](https://community.gravityforms.com/u/deefuz)\
**Post date:** [June 29, 2020, 1:16pm UTC](https://community.gravityforms.com/t/field-id-management-feature/4908/4 "2020-06-29T13:16:24Z")

</div>

Hello. If we propose many similar forms on same website, it would be easier to use same ids accross forms. For exemple for travel company purpose. Same common fields and functions related.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [June 29, 2020, 2:17pm UTC](https://community.gravityforms.com/t/field-id-management-feature/4908/5 "2020-06-29T14:17:49Z")

</div>

Thanks for that. How does having fields with the same IDs across different forms on one site help you? I want to be clear in my request. Please share an example of how you would use this, and how you work around it now. Thank you.

---

<div class="post-metadata">

**Author:** ![deefuz](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/deefuz/32/688_2.png) [@deefuz](https://community.gravityforms.com/u/deefuz)\
**Post date:** [June 29, 2020, 2:32pm UTC](https://community.gravityforms.com/t/field-id-management-feature/4908/6 "2020-06-29T14:32:57Z")

</div>

Better than looping fields to catch all emails fields, if i know that ID X field is always the field i’m looking for, i’ll get a lighter script.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [June 29, 2020, 4:57pm UTC](https://community.gravityforms.com/t/field-id-management-feature/4908/7 "2020-06-29T16:57:05Z")

</div>

I see. I’ll add those details. Currently, to work around the issue, you can use the Custom CSS Class field on the appearance tab, to hold a css class name, then check for that in your script, like this:

`if ( $field->cssClass == 'apply-my-code' ) {`

or, in your example of email type field, you can do this (and can do this for other field types as well):

`if ( $field->type == 'email' ) { `

Or, if you can even use the field label like this:

`if ( $field->label == 'Your email address' ) { `

I understand the request for the ID though. I’ll update the feature request.

---

<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:** [July 29, 2021, 1:58pm UTC](https://community.gravityforms.com/t/field-id-management-feature/4908/8 "2021-07-29T13:58:15Z")

</div>


