# Saving disabled and cleared fields on an Edit form - should blank the field on the database

**URL:** <https://discourse.cakephp.org/t/saving-disabled-and-cleared-fields-on-an-edit-form-should-blank-the-field-on-the-database/5173>\
**Category:** Need Help\
**Created:** [October 28, 2018, 12:07pm UTC](https://discourse.cakephp.org/t/saving-disabled-and-cleared-fields-on-an-edit-form-should-blank-the-field-on-the-database/5173 "2018-10-28T12:07:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hakim](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hakim](https://discourse.cakephp.org/u/hakim)\
**Post date:** [October 28, 2018, 12:07pm UTC](https://discourse.cakephp.org/t/saving-disabled-and-cleared-fields-on-an-edit-form-should-blank-the-field-on-the-database/5173/1 "2018-10-28T12:07:07Z")

</div>

I’m a bit stuck on how to “save” disabled fields in CakePHP 3.

Based on front end rules, on an Edit form, a field that previously had data is now blanked and disabled. However, when the form is saved. The previous value is still there, it’s not cleared.

Is there a setting or similar (in entity for example), that in this situation the field will be cleared on the database, to match what happened on the front end?

Currently, I will have to make it readonly and clear the value on the front end.
