APIs & Integrations

lukeowen
Member

Changes to single checkbox (boolean) field question

Dadams or anyone, we have noticed that you changed recently the structure of your Single Checkbox field (boolean) where it now looks to be more like a drop down select then a true boolean field. By default the options are Yes and No with internal values of true and false but it does give me the option to add a 3rd, 4th, 5th, etc. option to the field making it more of a single-select field. This presents a challenge when we are trying to normalize the data mapping of two boolean fields where traditionally there are only two distinct options of TRUE and FALSE. We are trying to figure out how we are going to handle this change and was wondering if you could shed some color as to the reason for the change.

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Changes to single checkbox (boolean) field question

Hi @Luke_Owen,

While it’s possible to add other options to single checkbox properties, these extra options will not appear when the property is used on a form. Single checkbox properties will have "type" : "enumeration" and "fieldType" : "booleancheckbox". If you create a single checkbox field and don’t create additional options, the true and false options will remain the same.