Templates / Process contact form submissions with validation and MongoDB storage

Process contact form submissions with validation and MongoDB storage

Ready for 3.0

by Samuel Heredia ✓ · 452 views · created 2025-08-30 · Document Extraction, Lead Generation

Ready 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”).

  1. Validate Pattern (Code): runs custom JavaScript code
  2. Edit Fields (Edit Fields (Set)): sets 5 fields: name, last_name, email…
  3. Insert documents (MongoDB): insert
  4. Form Ending (n8n Form): shows the next form page

Services it uses

MongoDB

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)

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…

Excerpt from Samuel Heredia's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.