APIs & Integrations

heatherthedev
Membro

Checkbox Value + Workflow Issues

I’m using the API to build the forms on my agency’s website. I’ve got a form w/ several boolean checkboxes. For some reason, whenever I submit the form the checkbox values are coming through as ‘on’ or ‘off’, rather than ‘yes’ or ‘no’. The workflow settings only allow me to select ‘Yes’ or ‘No’ as the potential values of that field for the user. How can I get the checkboxes to submit the appropriate value so that my workflow will run properly?

I can share URLs + more information as needed, let me know.

0 Avaliação positiva
2 Respostas 2
Dadams
HubSpot Employee
HubSpot Employee

Checkbox Value + Workflow Issues

@heatherthedev internally checkbox properties use the values true and false. The Yes and No are the labels that get used in the UI, but if you’re submitting values through the API you need to use true or false.

0 Avaliação positiva
heatherthedev
Membro

Checkbox Value + Workflow Issues

Ah! That helps a lot. Thanks for your help

0 Avaliação positiva