splitforms.com

Form template · Basic contact form

Popup Contact Form Template

A popup contact widget that floats in the corner of your site, opens a centred modal, and closes on Escape. Zero dependencies — vanilla JS, ~80 lines.

  • 500 free / mo
  • No PHP · no SDK
  • One POST endpoint
Live template preview

Pick your popup contact formone click to use it

Every template is free and fully editable in the drag-drop builder — swap fields, colors, and the button label before you publish.

Best match
Use this template
Use this template
Use this template

No backend code

No server, API route, or SDK — your Popup Contact Form posts straight to one endpoint.

Straight to your inbox

Every submission is emailed to you and saved to a searchable dashboard — spam filtered before it reaches you.

Copy-paste ready

It's plain HTML you own — paste the Popup Contact Form snippet, swap in your access key, and ship.

Copy and ship

Your Popup Contact Form, ready to paste.

HTML by default — the same field set also renders as React, Next.js, PHP, and cURL in your dashboard. Every variant posts to the same /api/submit endpoint. Replace YOUR_ACCESS_KEY with the key from your dashboard; that's the only edit.

Use this template — free
form.html
<form action="https://splitforms.com/api/submit" method="POST">
  <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
  <input type="hidden" name="subject" value="New contact form submission">

  <label for="name">Full name *</label>
  <input id="name" type="text" name="name" placeholder="Jane Builder" required>
  <label for="email">Email *</label>
  <input id="email" type="email" name="email" placeholder="[email protected]" required>
  <label for="phone">Phone *</label>
  <input id="phone" type="tel" name="phone" placeholder="+1 415 555 0142" required>
  <label for="message">Message *</label>
  <textarea id="message" name="message" placeholder="How can we help?" required></textarea>

  <!-- honeypot — bots fill every field -->
  <input type="checkbox" name="botcheck" style="display:none" tabindex="-1" autocomplete="off">

  <button type="submit">Send</button>
</form><p class="splitforms-attribution" style="margin-top:12px;font-size:11px;color:#888;text-align:right">
  Powered by <a href="https://splitforms.com" style="color:#888;text-decoration:none" target="_blank" rel="sponsored noopener">splitforms</a>
</p>

How to add it

How to add a Popup Contact Form to your site.

To add a Popup Contact Form to your site you need three things: a free splitforms access key, the HTML snippet above, and your key pasted into it. No backend, database, or CAPTCHA library — the form posts to one URL and every submission lands in your inbox and dashboard.

Paste the widget HTML once

It's a self-contained block — anchor button, overlay, modal card, and a tiny script. Drop it into your site's footer template so every page has it.

Wire it to your access key

One line — replace YOUR_ACCESS_KEY in the form's hidden input. That's the only personalisation.

Customise the trigger

The trigger is a regular button — change the icon, label, or position with CSS. The modal styling is yours to fork. We give you a working starting point.

What's included

What's in this Popup Contact Form template?

Putting a contact form on every page hurts conversion — it's noise. Putting a single 'Contact us' button in the corner of every page that opens a modal is the pattern Intercom popularised. You don't need Intercom's $99/month for it. The widget is 80 lines of HTML, CSS, and JS, and the form posts to the same splitforms endpoint you'd use anywhere else.

  • Basic contact form — 4 ready-made fields
  • HTML, JS, React, PHP, and cURL outputs
  • One POST endpoint, no SDK — honeypot and classifier, no CAPTCHA
What's included with the Popup Contact Form Template

Where submissions go

Where do your Popup Contact Form submissions go?

Reply-to is wired to the visitor's email, so one tap on Reply answers them directly — while the built-in honeypot and spam classifier filter out bots before they reach you. Every submission is emailed to your inbox and can forward to a webhook or Slack the moment a visitor hits send.

  • Reply-to wired to the visitor's email — reply straight from your inbox
  • Honeypot and spam classifier filter bots, no CAPTCHA friction
  • Live dashboard, CSV export, and signed webhooks on paid plans
Spam-filtered submissions from the Popup Contact Form Template

How SplitForms works

From form to workflow in 3 simple steps.

Connect your form, collect every submission, and send data where it needs to go — without building backend infrastructure.

A SplitForms contact form submission launching straight to your inbox

Add your endpoint

Point your form to your unique SplitForms endpoint. That's it.

HTML form pointing at a SplitForms submit endpoint

Receive submissions

We instantly capture and organize every submission in your inbox.

Submissions inbox with searchable leads and status pills

Route anywhere

Send data to email, spreadsheets, CRMs, webhooks, and 7,000+ apps.

Generic integration tiles for email, sheets, chat, CRM, automate, and webhook

No credit card required. Set up in under 60 seconds.

Connect & automate

Connect your favorite tools and automate everything

SplitForms works with the destinations you route to and the platforms you build on — from Slack and Sheets to WordPress, Shopify, and Next.js. And with Stripe connected, your forms can take payments too.

Connect your SplitForms form to Slack, Google Sheets, Mailchimp, Zapier and more
NewTake payments on your formsDeposits, bookings, order forms — submitters check out through Stripe and the money goes straight to your Stripe account. Included on every paid plan.See plans →

Trusted by indie teams and agencies shipping forms worldwide

PETAL/COKRAFT.DELINEAR-XBUILD.DEVSTUDIO 71MERIDIANFRAME&CO

Testimonials

Loved by developers shipping at every scale.

40 quotes on record — from indie hacks to agency migrations.

Questions

Popup Contact Form questions.

View all FAQs
Can I use this with Tailwind CSS or my framework?

The CSS in the example is vanilla but you can rewrite it in Tailwind — the structure (trigger button + overlay div + modal div) is what matters. We ship a Tailwind variant inside the dashboard once you sign up.

How do I open the popup from a different button?

The 'open' trigger is an event listener on a button with id='lf-open' — duplicate that ID on any other button (header, footer, in-content link) and clicking it opens the same modal.

Does the modal close on outside click?

Yes — clicking the overlay outside the card closes it. Pressing Escape also closes. Both are accessibility wins; both are wired up in the example script.

Is this mobile-friendly?

Yes. The modal scales to viewport width on small screens and the trigger button stays in the bottom-right corner where it doesn't block content.

Simple pricing

Start free. Scale when you need more.

Choose a plan that fits your workflow — from a free form endpoint to full automations, exports, Stripe payments, and higher submission limits.

Free

$0
 

Free forever

Best for testing

For side projects and indie devs.

  • 500 submissions / mo
  • Unlimited forms
  • Email notifications included
  • Honeypot spam filtering
  • Submissions dashboard
  • MCP setup stays free
  • No credit card required

3-Year

$59/ first 3 years
was $99 · save 40% · new-user price

Pay $59. 3 years sorted.

  • 15,000 submissions / mo
  • Unlimited forms
  • Everything in Pro
  • $59 for 3 years, then $59/year
  • Long-term discount
  • Priority support included
  • Vote on the roadmap

No credit card required on Free • Cancel anytime