Join the Webstudio community

Updated 3 months ago

How to setup Checkbox Field to get all the data in Webhook form?

At a glance

The community member is using a Webhook form with a Checkbox field, but is only receiving the last selected checkbox in the payload. They have set up the checkboxes with the same name "checkbox" for each component. The comments suggest that each checkbox needs a unique name in order to receive all the selected checkboxes in the payload. The answer is that the community member should provide unique names for each checkbox component in order to receive all the selected checkboxes in the Webhook payload.

I use the Webhook form with a Checkbox field and expect to receive all the checkmarked items on the payload. However, I've only received the last one. Here is how I set it up:

1) Checkbox with Name "checkbox" for each checkbox component
2) I select all checkmark entries in the form
3) The webhook returns only the last selection

I tested another form provider (Fillout), which returns the selections as an array. Is there anything specific I need to do in Webstudio to receive all the selected checkbox data?
J
2 comments
Each one needs a unique name
your'e sending

checkbox=a
checkbox=b
checkbox=c

So c is going to the the one that shows up unless you provide unique names to each one
Add a reply
Sign up and join the conversation on Discord