Form submission webhook
The form submission webhook triggers a notification for each new form submission, allowing for immediate action and data processing. This streamlined event ensures efficient data capture and integration into your workflows.
The JSON response below represents an example of the data structure returned by a form submission webhook:
- It details the various components of a submitted form, including the types of questions asked, the answers provided, and additional metadata such as the form's title, unique identifiers for the workflow and its entries, and the submission date.
- Each question within the form is categorized by type (e.g., multiple choice, open-ended, datetime) and includes relevant details such as question ids, titles, descriptions, and user responses.
- The response also encapsulates user information, including custom fields, contact details, and profile information.
{
"type": "workflow",
"title": "This is a title",
"workflowId": "12",
"workflowEntryId": "5b43a76b1d41c85da1ff8b77",
"entryNum": 15,
"dateSubmitted": "2018-05-25T17:20:22+03:00",
"workflowEntry": [
{
"type": "multipleChoice",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "Which meal do you prefer?",
"description": "This question is for the meal plan.",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"choices": [
{
"id": "dab4ed3c-f66b-731c-56c0-a82d1b7a8908",
"value": "meat"
},
{
"id": "dab4ed3c-f66b-731c-56c0-a82d1b7a8918",
"value": "dairy"
}
],
"markedAnswers": [
{
"id": "dab4ed3c-f66b-731c-56c0-a82d1b7a8908",
"value": "meat"
}
]
},
{
"type": "openEnded",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "Give a description of yourself.",
"description": "So we get to know you better!",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"text": "I'm a fun loving person"
},
{
"type": "datetime",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "What is your favorite work day?",
"description": "Used in BI surveys",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"date": "4-4-2018",
"time": "15:00:00",
"datetime": "2018-05-25T17:20:22+03:00",
"dateSubmitted": true,
"timeSubmitted": true
},
{
"type": "rating",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "How clean are the bathrooms?",
"description": "The company is trying a new cleaning service and we would like to know your opinion",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"rating": 4,
"maxValue": 5,
"minValue": 1,
"leftText": "dirty",
"rightText": "clean",
"minText": "dirty",
"maxText": "clean"
},
{
"type": "image",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "Take a picture of your work space.",
"description": "We're having a competion on who has the coolest workspace.",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"images": [
"image1.url"
]
},
{
"type": "signature",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "Please sign if agree you with the terms and conditions.",
"description": "This signature is used as consent.",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"signature": "image.url"
},
{
"type": "task",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "Hand in hours.",
"description": "So the company can pay your salary.",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"completed": true
},
{
"type": "description",
"description": "This is a description"
},
{
"type": "yesNo",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "Are you a right-handed or left-handed?",
"description": "The company needs to know what type of equiment to buy.",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"choices": [
{
"id": 0,
"value": "right-handed"
},
{
"id": 1,
"value": "left-handed"
}
],
"markedAnswers": {
"id": 0,
"value": "right-handed"
}
},
{
"type": "number",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "How many vacation days do you want?",
"description": "We are running a survey on vacation days.",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"number": "25"
},
{
"type": "audioRecording",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "How clean are the bathrooms?",
"description": "The company is trying a new cleaning service and we would like to know your opinion",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"audioUrl": "https://this.is.an/audio/URL"
},
{
"type": "number",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "How many vacation days do you want?",
"description": "We are running a survey on vacation days.",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"files": [
{
"url": "http://url.to.file",
"size": 91995,
"filename": "exampleFileName.pdf"
}
]
},
{
"type": "number",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "How many vacation days do you want?",
"description": "We are running a survey on vacation days.",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"images": [
"https://scaned.document.com"
]
},
{
"type": "yesNo",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "Which picture do you like better?",
"description": "The company needs to know what type of equiment to buy.",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"choices": [
{
"id": "814ad9c6-4818-fdb0-bc95-f07ad78f0958",
"image": "http://url.to.image",
"text": "image description"
},
{
"id": "814ad9c6-4818-fdb0-bc95-f07ad78f0958",
"image": "http://url.to.image",
"text": ""
}
],
"selectedAnswers": {
"id": "814ad9c6-4818-fdb0-bc95-f07ad78f0958",
"image": "http://url.to.image",
"text": "image description"
}
},
{
"type": "location",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "Where is the safty hazard.",
"description": "So the company can take care of it.",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
}
},
{
"type": "slider",
"questionId": "6d4d5595-2e9e-3dd8-deda-6ace575fa6af",
"title": "How clean are the bathrooms?",
"description": "The company is trying a new cleaning service and we would like to know your opinion",
"location": {
"longitude": 33.0831327,
"latitude": 33.7906493,
"address": "Platz der Republik 1, 11011 Berlin, Germany",
"isMock": false,
"altitude": 33.7906493,
"accuracy": 33.7906493,
"speed": 0.7906493
},
"value": 4,
"minValue": 1,
"maxValue": 5
}
],
"user": {
"userId": 6,
"customFields": [
{
"name": "employeeId",
"value": 4
},
{
"name": "job",
"value": "cashier"
}
],
"lastName": "Doe",
"phoneNumber": "972521234567",
"firstName": "John",
"email": "[email protected]",
"profile": {
"url": "profile.url"
}
}
}
Updated 3 months ago