This workflow follows the HTTP Request → Stopanderror recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Form Submission Validation",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "contact-form",
"options": {}
},
"id": "wh-1",
"name": "Form Submitted",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
200,
400
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $json.body.email }}",
"operation": "isNotEmpty"
}
]
},
"combineOperation": "all"
},
"id": "if-1",
"name": "Has Email?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
420,
400
]
},
{
"parameters": {
"values": {
"string": [
{
"name": "status",
"value": "accepted"
},
{
"name": "contact",
"value": "={{ $json.body.email }}"
}
]
}
},
"id": "set-ok",
"name": "Mark Accepted",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
640,
280
]
},
{
"parameters": {
"url": "https://crm.example.com/api/contacts",
"method": "POST",
"bodyParameters": {
"parameters": [
{
"name": "email",
"value": "={{ $json.contact }}"
}
]
}
},
"id": "http-store",
"name": "Store Contact",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
860,
280
]
},
{
"parameters": {
"errorMessage": "Form rejected: missing email address"
},
"id": "stop-1",
"name": "Reject Submission",
"type": "n8n-nodes-base.stopAndError",
"typeVersion": 1,
"position": [
640,
520
]
}
],
"connections": {
"Form Submitted": {
"main": [
[
{
"node": "Has Email?",
"type": "main",
"index": 0
}
]
]
},
"Has Email?": {
"main": [
[
{
"node": "Mark Accepted",
"type": "main",
"index": 0
}
],
[
{
"node": "Reject Submission",
"type": "main",
"index": 0
}
]
]
},
"Mark Accepted": {
"main": [
[
{
"node": "Store Contact",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {},
"id": "wf-form",
"tags": [
"forms"
]
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Form Submission Validation. Uses httpRequest, stopAndError. Webhook trigger; 5 nodes.
Source: https://github.com/c4snipes/n8n-transpiler/blob/b996ed54e992700c837c2ae579a893a2c34ce3f7/examples/form_validation/workflow.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Syncro Alert to OpsGenie. Uses httpRequest, stopAndError. Webhook trigger; 8 nodes.
Syncro Status Update Clockify. Uses clockify, httpRequest, stopAndError. Webhook trigger; 7 nodes.
comentarios automaticos. Uses httpRequest, stopAndError. Webhook trigger; 69 nodes.
GiveWP Donations to Beacon. Uses httpRequest, stopAndError. Webhook trigger; 42 nodes.
MCP Veo Video. Uses stopAndError, n8n-nodes-veo-video, httpRequest. Webhook trigger; 25 nodes.