# Duplicating a field on the form caused field ID to change

**URL:** <https://community.gravityforms.com/t/duplicating-a-field-on-the-form-caused-field-id-to-change/14329>\
**Category:** Get Help\
**Tags:** duplicate-fields, data-loss, delete-field, duplicate-field\
**Created:** [January 31, 2023, 4:45pm UTC](https://community.gravityforms.com/t/duplicating-a-field-on-the-form-caused-field-id-to-change/14329 "2023-01-31T16:45:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5c4b3c43b244b8.9](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@user5c4b3c43b244b8.9](https://community.gravityforms.com/u/user5c4b3c43b244b8.9)\
**Post date:** [January 31, 2023, 4:45pm UTC](https://community.gravityforms.com/t/duplicating-a-field-on-the-form-caused-field-id-to-change/14329/1 "2023-01-31T16:45:04Z")

</div>

My database has hundreds of rows of data already. I use REST API to fetch form data periodically.

I need to add a field to the form (and thus the database), and have that field become part of the fetch. It is important that the new field come at the end of the structure in the fetch and not interrupt the order of the other fields.

I created this new field by duplicating an existing field. Existing field was ID:7. After the duplication, the existing field became ID:11 and the new field became ID:7. So, all of the data that should be mapped to the old ID:7 is now mapped to the new ID:7. This is a huge problem for me and I cannot determine how to fix it.

In a panic, I deleted the new field. But the original field remains at ID:11. I _really_ need that field to go back to ID:7. How can I fix this?

---

<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:** [January 31, 2023, 10:44pm UTC](https://community.gravityforms.com/t/duplicating-a-field-on-the-form-caused-field-id-to-change/14329/2 "2023-01-31T22:44:38Z")

</div>

Hi Kellee. When duplicating a field, the original field ID remains, and the duplicate is assigned the next available field ID. It sounds like your duplicate field has an ID of 11. The original field will have an unchanged ID of 7.

If you have deleted any fields, you deleted the data that was collected with that field. My recommendation is to restore a copy of the database from before the form was edited and the field was duplicated.

If you would like assistance figuring out what happened, please open a support ticket here: [https://www.gravityforms.com/open-support-ticket/technical/](https://www.gravityforms.com/open-support-ticket/technical/)

Thank you.

---

<div class="post-metadata">

**Author:** ![user5c4b3c43b244b8.9](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@user5c4b3c43b244b8.9](https://community.gravityforms.com/u/user5c4b3c43b244b8.9)\
**Post date:** [February 1, 2023, 12:27am UTC](https://community.gravityforms.com/t/duplicating-a-field-on-the-form-caused-field-id-to-change/14329/3 "2023-02-01T00:27:10Z")

</div>

How do I restore a copy of the database?

---

<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:** [February 1, 2023, 5:20pm UTC](https://community.gravityforms.com/t/duplicating-a-field-on-the-form-caused-field-id-to-change/14329/4 "2023-02-01T17:20:17Z")

</div>

Hi Kellee. I recommend contacting your host for assistance with that. That’s not something Gravity Forms can help you with.

---

<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:** [March 3, 2023, 5:20pm UTC](https://community.gravityforms.com/t/duplicating-a-field-on-the-form-caused-field-id-to-change/14329/5 "2023-03-03T17:20:37Z")

</div>

Closed on March 3, 2023, 5:20pm UTC

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