# How to send a value for \[Single on/off checkbox\] using form api

**URL:** <https://community.hubspot.com/t/how-to-send-a-value-for-single-on-off-checkbox-using-form-api/11880>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [April 25, 2017, 1:53pm UTC](https://community.hubspot.com/t/how-to-send-a-value-for-single-on-off-checkbox-using-form-api/11880 "2017-04-25T13:53:35Z")\
**Posts on this page:** 3\
**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 25, 2017, 1:53pm UTC](https://community.hubspot.com/t/how-to-send-a-value-for-single-on-off-checkbox-using-form-api/11880/1 "2017-04-25T13:53:35Z")

</div>

I have tried sending TRUE(boolean), True(string), 1(int), 1(string) but none of them was captured in the form.

I am using PHP library [GitHub - HubSpot/haPiHP: An updated PHP client for the HubSpot API · GitHub](https://github.com/HubSpot/haPiHP)

Please guide.

Thanks.

---

<div class="post-metadata">

**Author:** ![benvanlooy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/benvanlooy/32/98997_2.png) [@benvanlooy](https://community.hubspot.com/u/benvanlooy)\
**Post date:** [November 13, 2018, 4:21pm UTC](https://community.hubspot.com/t/how-to-send-a-value-for-single-on-off-checkbox-using-form-api/11880/2 "2018-11-13T16:21:17Z")

</div>

I know it’s weird.. imo 0 or 1 would make more sense..  
but what worked for me is sending TRUE or FALSE as string!

‘true’

‘false’

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 14, 2018, 8:14pm UTC](https://community.hubspot.com/t/how-to-send-a-value-for-single-on-off-checkbox-using-form-api/11880/3 "2018-11-14T20:14:30Z")

</div>

Thanks for weighing in, @benvanlooy. I agree this is a bit strange.

For others viewing this topic, if you’re ever unsure of the format of a property’s options, the “Get all [object] properties” endpoints are the best place to check.

For example, the [Get all contacts properties](https://developers.hubspot.com/docs/methods/contacts/v2/get_contacts_properties) endpoint returns two `options` for each property with the `"fieldType": "booleancheckbox"`:

- `value": "true"`
- `value": "false"`
