# Update a Boolean field from a form

**URL:** https://forum.mautic.org/t/update-a-boolean-field-from-a-form/3840
**Category:** Product Support
**Created:** [July 11, 2016, 9:39pm UTC](https://forum.mautic.org/t/update-a-boolean-field-from-a-form/3840 "2016-07-11T21:39:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nschulzke](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nschulzke](https://forum.mautic.org/u/nschulzke)
#### Post date: [July 11, 2016, 9:39pm UTC](https://forum.mautic.org/t/update-a-boolean-field-from-a-form/3840/1 "2016-07-11T21:39:26Z")

</div>

I have a custom Boolean field that I’m trying to update from a checkbox on a form. The problem is that the form is sending Mautic the label of the checkbox (“Yes!”), which Mautic can’t put into a Boolean field (it’s not 0 or 1). If I rename the label to “1”, it works, and if I point the checkbox to a text field, it populates it with “Yes!”.  
  
  
  
Is there any way I can get the form to correctly populate the Boolean field with a 1 if the “Yes!” box is checked?

---

<div class="post-metadata">

### Author: ![nschulzke](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nschulzke](https://forum.mautic.org/u/nschulzke)
#### Post date: [July 11, 2016, 9:39pm UTC](https://forum.mautic.org/t/update-a-boolean-field-from-a-form/3840/2 "2016-07-11T21:39:26Z")

</div>

I have a custom Boolean field that I’m trying to update from a checkbox on a form. The problem is that the form is sending Mautic the label of the checkbox (“Yes!”), which Mautic can’t put into a Boolean field (it’s not 0 or 1). If I rename the label to “1”, it works, and if I point the checkbox to a text field, it populates it with “Yes!”.

Is there any way I can get the form to correctly populate the Boolean field with a 1 if the “Yes!” box is checked?
