# Contact property data type boolean

**URL:** <https://community.hubspot.com/t/contact-property-data-type-boolean/11773>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [April 7, 2017, 10:49am UTC](https://community.hubspot.com/t/contact-property-data-type-boolean/11773 "2017-04-07T10:49:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [April 7, 2017, 10:49am UTC](https://community.hubspot.com/t/contact-property-data-type-boolean/11773/1 "2017-04-07T10:49:51Z")

</div>

For the API end point for creating a custom contact property, located here [http://developers.hubspot.com/docs/methods/contacts/v2/create\_contacts\_property](http://developers.hubspot.com/docs/methods/contacts/v2/create_contacts_property), is there a way to set the data type to be a boolean? Currently it seems an enumeration would have to be used, could a boolean type be added?

---

<div class="post-metadata">

**Author:** ![3PETE](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/3pete/32/61905_2.png) [@3PETE](https://community.hubspot.com/u/3PETE)\
**Post date:** [April 7, 2017, 12:22pm UTC](https://community.hubspot.com/t/contact-property-data-type-boolean/11773/2 "2017-04-07T12:22:28Z")

</div>

[@EdcoPeter](https://community.hubspot.com/u/edcopeter) A property type cannot be added. Another possibility would be to use a Radio Button type that only has two options “True” and “False” This would maintain better consistency of a value only being either or

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [May 23, 2018, 9:24am UTC](https://community.hubspot.com/t/contact-property-data-type-boolean/11773/3 "2018-05-23T09:24:44Z")

</div>

Hey,  
I have a similar issue.  
I am now implementing the GDPR field in your system on our forms.  
The type of the field ,by default, is a checkbox that gets TRUE/FALSE (boolean value).  
I am sending the fields values through the API as an object. I see the object passing form my side through a pnp page on the Chrome in Devtools XHR tab. but the data doesn’t pass to the hubspot database. all the other fields are passing. they are strings not boolean. only the checkbox boolean value doesn’t pass.  
What is the correct way to pass the boolean value to the hubspot database?

---

<div class="post-metadata">

**Author:** ![3PETE](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/3pete/32/61905_2.png) [@3PETE](https://community.hubspot.com/u/3PETE)\
**Post date:** [May 23, 2018, 12:33pm UTC](https://community.hubspot.com/t/contact-property-data-type-boolean/11773/4 "2018-05-23T12:33:57Z")

</div>

[@ilan.berko](https://community.hubspot.com/u/ilan.berko) Can you please share with us an example of your call and the response from HubSpot?

---

<div class="post-metadata">

**Author:** ![NGraham1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ngraham1/32/44702_2.png) [@NGraham1](https://community.hubspot.com/u/NGraham1)\
**Post date:** [January 5, 2022, 5:49pm UTC](https://community.hubspot.com/t/contact-property-data-type-boolean/11773/5 "2022-01-05T17:49:04Z")

</div>

Hi @3PETE I’m generally curious why hubspot does not include booleans as a defualt property type. They are much more effecient than strings and make developer’s lives a lot easier espeically when dealing with workflows and other things that use any sort of logic. It feels so wasteful to have to use so many string based enumations when they could just be simple booleans. If hubspot is meant to be a robust, user friendly solution for businesses it seems like a pretty basic thing to include. Is there a reason they aren’t included?

---

<div class="post-metadata">

**Author:** ![PTancredi](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@PTancredi](https://community.hubspot.com/u/PTancredi)\
**Post date:** [June 19, 2025, 3:33pm UTC](https://community.hubspot.com/t/contact-property-data-type-boolean/11773/6 "2025-06-19T15:33:51Z")

</div>

It also makes UI difficult. I want to represent boolean properties differently than I represent enumeration properties, but everything is either a string or enumeration type it seems.

---

<div class="post-metadata">

**Author:** ![3PETE](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/3pete/32/61905_2.png) [@3PETE](https://community.hubspot.com/u/3PETE)\
**Post date:** [January 5, 2022, 7:46pm UTC](https://community.hubspot.com/t/contact-property-data-type-boolean/11773/7 "2022-01-05T19:46:28Z")

</div>

Hey @NGraham1 . You can use a single checkbox property to represent a boolean property since it only has an “on” or “off” function to it. Here is a link to our Property Types: [Understand property field types in HubSpot](https://knowledge.hubspot.com/account/property-field-types-in-hubspot)

---

<div class="post-metadata">

**Author:** ![NGraham1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ngraham1/32/44702_2.png) [@NGraham1](https://community.hubspot.com/u/NGraham1)\
**Post date:** [January 5, 2022, 8:07pm UTC](https://community.hubspot.com/t/contact-property-data-type-boolean/11773/8 "2022-01-05T20:07:19Z")

</div>

That makes sense! Thanks @3PETE
