# Update Contact and Make field Empty from Campaign

**URL:** <https://forum.mautic.org/t/update-contact-and-make-field-empty-from-campaign/13731>\
**Category:** Product Support\
**Created:** [April 1, 2020, 11:25am UTC](https://forum.mautic.org/t/update-contact-and-make-field-empty-from-campaign/13731 "2020-04-01T11:25:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.spelt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/david.spelt/32/627_2.png) [@david.spelt](https://forum.mautic.org/u/david.spelt)\
**Post date:** [April 1, 2020, 11:25am UTC](https://forum.mautic.org/t/update-contact-and-make-field-empty-from-campaign/13731/1 "2020-04-01T11:25:45Z")

</div>

**Your software**  
My Mautic version is: 5.1.3  
My PHP version is: 7.0.33-0ubuntu0.16.04.9

**Your problem**  
My problem is: In a campagne I want to open a Segment en delete the contents of a certain contact field via the Update Contact Action.

These errors are showing in the log:

Steps I have tried to fix the problem:  
I tried to use the quotation marks, but it still shows a value.

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [April 1, 2020, 1:38pm UTC](https://forum.mautic.org/t/update-contact-and-make-field-empty-from-campaign/13731/2 "2020-04-01T13:38:57Z")

</div>

Hi David,

I assume that by “open a segment” you mean “start from a segment”, i.e. run this campaign for all contacts in a certain segment. Right?

That said: As far as i know there is indeed no proper way to actually delete the value of a contact’s field. The best workaround we came up with is just change it to an “\_” (underscore) and test against that value, too, whenever we want to check for “empty”.

I think this is worth a feature request. Here it is: [Form Action to PURGE a contact's field value](https://forum.mautic.org/t/form-action-to-purge-a-contacts-field-value/13734)

---

<div class="post-metadata">

**Author:** ![david.spelt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/david.spelt/32/627_2.png) [@david.spelt](https://forum.mautic.org/u/david.spelt)\
**Post date:** [April 1, 2020, 3:19pm UTC](https://forum.mautic.org/t/update-contact-and-make-field-empty-from-campaign/13731/3 "2020-04-01T15:19:40Z")

</div>

Yes, I meant starting from a segment. You are correct!

And thank you for creating the request.

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [April 1, 2020, 3:24pm UTC](https://forum.mautic.org/t/update-contact-and-make-field-empty-from-campaign/13731/4 "2020-04-01T15:24:52Z")

</div>



---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [April 1, 2020, 3:25pm UTC](https://forum.mautic.org/t/update-contact-and-make-field-empty-from-campaign/13731/5 "2020-04-01T15:25:05Z")

</div>


