Hi Typeform Community!
I’m Dmytro, a Senior Product Manager here at Typeform responsible for sharing and embedding experience, API, SDK and webhooks.
Many of you have expressed feedback about our webhooks here in the community, and we’ve listened to your requests!
We are working on adding more information to the webhook payload when forms have a choice question (Multiple Choice, Picture Choice or Dropdown). This means that forms with choice questions will send the “ref
” of the selected choices.
The array of answers will now contain the choice “ref
” as part of the “choice
” or “choices
” sections, depending whether multiple selection is toggled on.
This change will help you better identify which choice was selected, instead of having to rely on labels, and then map that information to your systems.
We recommend developers to check their webhook payload validation and make sure that the new field will not trigger any validation errors.
An example of the new payload can be found below:
{
"answers": [
{
"type": "choices",
"choices": {
"labels": [
"Choice 1 label",
"Choice 2 label"
],
"refs": [
"4e224000-9ca6-46ae-9ea5-bd1ce4d0106d",
"c1425d5c-64d0-4e1b-b4b2-5a4232954442"
]
},
"field": {
"id": "PNe8ZKBK8C2Q",
"type": "multiple_choice"
}
},
{
"type": "choice",
"choice": {
"label": "Choice label",
"ref": "123456-456-4ae2-8224-645656565"
},
"field": {
"id": "k6TP9oLGgHjl",
"type": "dropdown"
}
}
]
}
If you have any feedback, questions or comments, drop them in the thread below!