Process contact form submissions with validation and MongoDB storage
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 5 nodes and runs when someone submits an n8n form (“📩 Get in Touch with Us”). Along the way it connects MongoDB.
How it runs
Trigger: When someone submits an n8n form (“📩 Get in Touch with Us”).
- Validate Pattern (Code): runs custom JavaScript code
- Edit Fields (Edit Fields (Set)): sets 5 fields: name, last_name, email…
- Insert documents (MongoDB): insert
- Form Ending (n8n Form): shows the next form page
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- Code
n8n-nodes-base.code - n8n Form Trigger
n8n-nodes-base.formTrigger - MongoDB
n8n-nodes-base.mongoDb - Edit Fields (Set)
n8n-nodes-base.set - n8n Form
n8n-nodes-base.form
From the author
This n8n workflow securely processes contact form submissions by validating user input, formatting the data, and storing it in a MongoDB database. The flow ensures data consistency, prevents unsafe entries, and provides a confirmation response back to the…