Features

Webhooks to include a simple JSON rendering of the form & data

2y agoPending

It would be convenient for some integrations that the form would be included in the POST body also just as a simple JSON object, with form field names or titles as object keys with their values.

Some considerations:

- I understand I am suggesting redundant data, but for webhooks I consider the extra traffic as negligible. But if that's in issue there could always just be a checkbox to enable / disable the JSON in there (or a drop-down to choose between "fields", "fields+json" and "json")

- There could also be a checkbox for automatically lower casing the field names (to avoid having to go edit each field separately), as this would probably be a fairly common need. Or it could even be a drop-down with different variable name casing options (like "lowerCamelCase", "UpperCamelCase", "snake_case", "kebab-case" and so on) that would then be applied on all the field labels before rendering the JSON

Something like this:

```

{

"eventId": "1-2-3-4",

"eventType": "FORM_RESPONSE",

"createdAt": "2025-04-29T11:58:40.268Z",

"data": {

"responseId": "jabXYX4",

"submissionId": "jabXYX4",

"respondentId": "70eLqi",

"formId": "4qfN21d",

"formName": "Birthday collector",

"createdAt": "2025-04-29T11:58:35.000Z",

"fields": [

{

"key": "question_y35i70",

"label": "Name",

"type": "INPUT_TEXT",

"value": "Test 4"

},

{

"key": "question_Xab5swe",

"label": "Birthday",

"type": "INPUT_DATE",

"value": "2025-04-19"

}

],

// new stuff

"json": {

"Name": "Test 4",

"Birthday": "2025-04-19"

}

}

}

```

0 comments