# Campaign action Update contact can only change boolean contact fields from No to Yes, not from Yes to No

**URL:** <https://forum.mautic.org/t/campaign-action-update-contact-can-only-change-boolean-contact-fields-from-no-to-yes-not-from-yes-to-no/33934>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [October 25, 2024, 12:33pm UTC](https://forum.mautic.org/t/campaign-action-update-contact-can-only-change-boolean-contact-fields-from-no-to-yes-not-from-yes-to-no/33934 "2024-10-25T12:33:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![myusername](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/myusername/32/706_2.png) [@myusername](https://forum.mautic.org/u/myusername)\
**Post date:** [October 25, 2024, 12:33pm UTC](https://forum.mautic.org/t/campaign-action-update-contact-can-only-change-boolean-contact-fields-from-no-to-yes-not-from-yes-to-no/33934/1 "2024-10-25T12:33:29Z")

</div>

My Mautic version is: 5.1.1  
My PHP version is: 8.2.24

My problem is:  
Campaign action Update contact can only change boolean contact fields from No to Yes, not from Yes to No

### What happened?

if I want to change the value of a boolean field per campaign, it should work in both directions as before in Mautic 4: yes to no or no to yes - in Mautic 5 only no to yes is possible in campaigns

### How can we reproduce this issue?

Step 1: create a custom booelan field  
Step: 2: create a campaign that updates the contact (change field value to yes)

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [October 29, 2024, 2:42pm UTC](https://forum.mautic.org/t/campaign-action-update-contact-can-only-change-boolean-contact-fields-from-no-to-yes-not-from-yes-to-no/33934/2 "2024-10-29T14:42:31Z")

</div>

Thats now this issue in Github:

> <https://github.com/mautic/mautic/issues/14224>
>
> \### Mautic Series
> 
> 5.1.x series
> 
> \### Mautic installed version
> 
> 5.1.1
> 
> \### Way of… installing
> 
> Other (please specify if relevant in the bug report)
> 
> \### PHP version
> 
> 8.2.24
> 
> \### What browsers are you seeing the problem on?
> 
> \_No response\_
> 
> \### What happened?
> 
> if I want to change the value of a boolean field per campaign, it should work in both directions as before in Mautic 4: yes to no or no to yes - in Mautic 5 only no to yes is possible in campaigns
> 
> \### How can we reproduce this issue?
> 
> Step 1: create a custom booelan field
> Step: 2: create a campaign that updates the contact (change field value to yes)
> 
> \### Relevant log output
> 
> \_No response\_
> 
> \### Code of Conduct
> 
> \- \[X\] I confirm that I have read and agree to follow this project's Code of Conduct
> 
> \<br /\>\<hr\>
> Care about this issue? Want to get it resolved sooner? If you are a \<a href='https://www.mautic.org/become-a-member-of-mautic'\>member of Mautic\</a\>, you can add some funds to the \<a href='https://opencollective.com/mautic/projects/bounties'\>Bounties Project\</a\> so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs \<a href='https://contribute.mautic.org/product-team/mautic-bounty-programme'\>here.\</a\>
