# Updating Field Name in Model deletes Field Content in Item

**URL:** https://discourse.getcockpit.com/t/updating-field-name-in-model-deletes-field-content-in-item/2665
**Category:** Cockpit v2
**Created:** [January 11, 2023, 6:13pm UTC](https://discourse.getcockpit.com/t/updating-field-name-in-model-deletes-field-content-in-item/2665 "2023-01-11T18:13:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![m00gendai](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/m00gendai/32/1269_2.png) [@m00gendai](https://discourse.getcockpit.com/u/m00gendai)
#### Post date: [January 11, 2023, 6:13pm UTC](https://discourse.getcockpit.com/t/updating-field-name-in-model-deletes-field-content-in-item/2665/1 "2023-01-11T18:13:46Z")

</div>

Say I have a Wysiwyg field with name “Test” in a collection.  
I made a new item in the collection and wrote stuff in the “Test” field.

Now, I would like to change the name in the collection from “Test” to “Hello”.  
This deletes any written content in that field in every item in the colletion.

Same with asset fields, it deletes all assets in the item upon changing the asset field name in the model.

Is this expected behavior or am I doing something wrong/missing something obvious?

---

<div class="post-metadata">

### Author: ![creativeplusplus](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/creativeplusplus/32/844_2.png) [@creativeplusplus](https://discourse.getcockpit.com/u/creativeplusplus)
#### Post date: [February 1, 2023, 5:17am UTC](https://discourse.getcockpit.com/t/updating-field-name-in-model-deletes-field-content-in-item/2665/2 "2023-02-01T05:17:54Z")

</div>

It will not delete the Test name in json object and it will add New Hello in json, but when you edit it only see the new Hello field

---

<div class="post-metadata">

### Author: ![m00gendai](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/m00gendai/32/1269_2.png) [@m00gendai](https://discourse.getcockpit.com/u/m00gendai)
#### Post date: [February 8, 2023, 12:50pm UTC](https://discourse.getcockpit.com/t/updating-field-name-in-model-deletes-field-content-in-item/2665/3 "2023-02-08T12:50:10Z")

</div>

Ah, I see that now. Not the behavior I expected, but at least I can work with that. Thank you!
