Mautic Community Forums

Update Contact and Make field Empty from Campaign

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.

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

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

And thank you for creating the request.