Looking through our data, sometimes the ID and ref is missing in the JSON we get on our webhook
For example, sometimes we get this and that’s great, we can be sure we know what choice the user made:
{
"type": "choice",
"choice": {
"id": "IDdY2lg65F2v",
"label": "I'll give it a try",
"ref": "267c4942-acf9-498e-8fc0-8956f256d98e"
},
"field": {
"id": "zsikICfrHob3",
"type": "multiple_choice",
"ref": "598eb33b-3ce0-4a6f-94ed-7ed5bad1264b"
}
},
But then sometimes the ID is missing and I have to do string matching on the label, which is not great.
{
"type": "choice",
"choice": {
"label": "I'll give it a try"
},
"field": {
"id": "zsikICfrHob3",
"type": "multiple_choice",
"ref": "598eb33b-3ce0-4a6f-94ed-7ed5bad1264b"
}
},
This seems to be a problem others have reported: