# When checkbox is mapped with custom boolean field, values of the custom field are always written into the form

**URL:** https://forum.mautic.org/t/when-checkbox-is-mapped-with-custom-boolean-field-values-of-the-custom-field-are-always-written-into-the-form/33935
**Category:** Mautic 5 Install/Upgrade Support
**Created:** [October 25, 2024, 12:46pm UTC](https://forum.mautic.org/t/when-checkbox-is-mapped-with-custom-boolean-field-values-of-the-custom-field-are-always-written-into-the-form/33935 "2024-10-25T12:46:07Z")
**Posts on this page:** 3
**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:46pm UTC](https://forum.mautic.org/t/when-checkbox-is-mapped-with-custom-boolean-field-values-of-the-custom-field-are-always-written-into-the-form/33935/1 "2024-10-25T12:46:07Z")

</div>

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

My problem is:

# When checkbox is mapped with custom boolean field, values ​​of the custom field are always written into the form

used always boolean contact fields (no/yes) mapped with a form checkbox to store if checkbox is checked by contact or not (e.g. newsletter request)  
It is not possible in Mautic 5 because the selection “assign to fields list choice” doesn’t work

---

<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:41pm UTC](https://forum.mautic.org/t/when-checkbox-is-mapped-with-custom-boolean-field-values-of-the-custom-field-are-always-written-into-the-form/33935/2 "2024-10-29T14:41:35Z")

</div>

Thats now this issue:

> <https://github.com/mautic/mautic/issues/14225>
>
> \### 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?
> 
> used always boolean contact fields (no/yes) mapped with a form checkbox to store if checkbox is checked by contact or not (e.g. newsletter request)
> It is not possible in Mautic 5 because the selection "assign to fields list choice" doesn't work:
> checkbox setting:
> !\[image\](https://github.com/user-attachments/assets/8147c17e-fdc9-40fa-853c-2c9083bd0600)
> result in form:
> !\[image\](https://github.com/user-attachments/assets/ec9f9a60-71d7-45aa-b204-5600b99f06fd)
> 
> 
> \### How can we reproduce this issue?
> 
> Step 1: create a form with a checkbox (only 1 checkbox with custom label)
> Step 2: do not assign to fields list choice
> Step 3: Save
> 
> \### 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\>

---

<div class="post-metadata">

### Author: ![chris001](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@chris001](https://forum.mautic.org/u/chris001)
#### Post date: [November 2, 2024, 11:22am UTC](https://forum.mautic.org/t/when-checkbox-is-mapped-with-custom-boolean-field-values-of-the-custom-field-are-always-written-into-the-form/33935/3 "2024-11-02T11:22:05Z")

</div>

i have the same issue. Is there a fix?

Did you find another way to get around the problem? Like you, I was planning to create a newsletter checkbox.
