# Potential bug where data in custom fields is cleared if certain fields change

**URL:** https://meta.discourse.org/t/potential-bug-where-data-in-custom-fields-is-cleared-if-certain-fields-change/410050
**Category:** Bug
**Tags:** events, fixed
**Created:** [August 14, 2026, 5:59am UTC](https://meta.discourse.org/t/potential-bug-where-data-in-custom-fields-is-cleared-if-certain-fields-change/410050 "2026-08-14T05:59:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dubwoc](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@dubwoc](https://meta.discourse.org/u/dubwoc)
#### Post date: [August 14, 2026, 5:59am UTC](https://meta.discourse.org/t/potential-bug-where-data-in-custom-fields-is-cleared-if-certain-fields-change/410050/1 "2026-08-14T05:59:43Z")

</div>

If the **Location or URL** field or the **Event Image** “field” changes, any data that was entered in to any of the **Custom Fields** will be cleared.

This feels like a bug rather than intended behavior. If it is a bug..

This is happening on a up to date version of Discourse, [v2026.8.0-latest.1 +274](https://github.com/discourse/discourse/commit/2d1c4701e62e80630adcc93d28cc6915d6c658fe "2d1c4701e62e80630adcc93d28cc6915d6c658fe"), on the default theme, across browsers / computers / users.

I am unable to test it on [try.discourse.org](http://try.discourse.org) as there aren’t any custom fields enabled there but if someone wants to enable one I will happily confirm it there.

Here is a video of the behavior for the location field but it would behave exactly the same if I uploaded an image.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [August 14, 2026, 11:20am UTC](https://meta.discourse.org/t/potential-bug-where-data-in-custom-fields-is-cleared-if-certain-fields-change/410050/3 "2026-08-14T11:20:23Z")

</div>

Thanks for the report, it’ll be fixed by

> <https://github.com/discourse/discourse/pull/42624>
>
> Previously, values typed into the event builder's custom fields were cleared as …soon as another field changed (location, image, name, …), and toggling between the compact and advanced screens could permanently revert them to stale values.
> 
> This change commits custom field values through the form's \`set\` (a field's \`@onSet\` replaces FormKit's default write, so skipping it left the typed value out of the form data), replaces the \`customFields\` reference on every write (mutating inside the object never invalidated \`compactInitialState\`, so the compact screen served stale values back), and tracks \`formData\` (untracked, the advanced screen always reinitialized from the modal's construction-time snapshot).
> 
> Reported in https://meta.discourse.org/t/potential-bug-where-data-in-custom-fields-is-cleared-if-certain-fields-change/410050

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 16, 2026, 11:44am UTC](https://meta.discourse.org/t/potential-bug-where-data-in-custom-fields-is-cleared-if-certain-fields-change/410050/5 "2026-08-16T11:44:09Z")

</div>


