# Search boolean fild not possible in contacts

**URL:** https://forum.mautic.org/t/search-boolean-fild-not-possible-in-contacts/29548
**Category:** Product Support
**Created:** [October 5, 2023, 5:11am UTC](https://forum.mautic.org/t/search-boolean-fild-not-possible-in-contacts/29548 "2023-10-05T05:11:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![stefan-franz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/stefan-franz/32/12758_2.png) [@stefan-franz](https://forum.mautic.org/u/stefan-franz)
#### Post date: [October 5, 2023, 5:11am UTC](https://forum.mautic.org/t/search-boolean-fild-not-possible-in-contacts/29548/1 "2023-10-05T05:11:10Z")

</div>

**Your software**  
My Mautic version is: 4.4.10  
My PHP version is: 8.0.30  
My Database type and version is: 10.6

I made for double opt in a boolean field calld Doi  
Now i wanted do search in contacts for all contacts where Doi:Ja  
But the field Doi is not selectable for searching.  
Another custom field “birthday” works. The difference is, that Doi is a boolean field - is that not searchable?

---

<div class="post-metadata">

### Author: ![Leon\_Oltmanns](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leon_oltmanns/32/10629_2.png) [@Leon\_Oltmanns](https://forum.mautic.org/u/Leon_Oltmanns)
#### Post date: [October 5, 2023, 9:21am UTC](https://forum.mautic.org/t/search-boolean-fild-not-possible-in-contacts/29548/2 "2023-10-05T09:21:12Z")

</div>

Hi @stefan-franz,  
I suggest to just create a segment and filter for the Bool field with the content of “yes”.

Would that already be a sufficient solution?

Greets  
Leon

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [October 5, 2023, 10:41am UTC](https://forum.mautic.org/t/search-boolean-fild-not-possible-in-contacts/29548/3 "2023-10-05T10:41:39Z")

</div>

I think you need to talk to your Mautic as a coder:

doi:1

Joey

---

<div class="post-metadata">

### Author: ![stefan-franz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/stefan-franz/32/12758_2.png) [@stefan-franz](https://forum.mautic.org/u/stefan-franz)
#### Post date: [October 5, 2023, 2:40pm UTC](https://forum.mautic.org/t/search-boolean-fild-not-possible-in-contacts/29548/4 "2023-10-05T14:40:57Z")

</div>

Yes you’re right. Thanks.  
Segment can search Yes / No - but in the contact view doi:1 or doi:0 is the right way.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)
#### Post date: [October 7, 2023, 2:41am UTC](https://forum.mautic.org/t/search-boolean-fild-not-possible-in-contacts/29548/5 "2023-10-07T02:41:48Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
