splitforms.com
FEEDBACK · CONTACT FORM TEMPLATE

Multi-step Form (Typeform-style)

Multi-step forms get higher completion rates than long single-page forms. This is the pattern Typeform built a $1B company on, in 200 lines of vanilla code.

1,000/mo free·no card·works on any host
form.htmlhtml27 lines
01<form action="https://splitforms.com/api/submit" method="POST">
02 <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
03 <input type="hidden" name="subject" value="New feedback submission">
04
05 <label for="rating">How would you rate your experience? *</label>
06 <select id="rating" name="rating" required>
07 <option value="">Choose…</option>
08 <option>★★★★★</option>
09 <option>★★★★☆</option>
10 <option>★★★☆☆</option>
11 <option>★★☆☆☆</option>
12 <option>★☆☆☆☆</option>
13 </select>
14 <label for="feedback">What can we do better? *</label>
15 <textarea id="feedback" name="feedback" placeholder="Be honest — we won't take it personally." required></textarea>
16 <label for="email">Email (optional, for follow-up)</label>
17 <input id="email" type="email" name="email" placeholder="you@example.com">
18
19 <!-- honeypot — bots fill every field -->
20 <input type="checkbox" name="botcheck" style="display:none" tabindex="-1" autocomplete="off">
21
22 <button type="submit">Send</button>
23</form>
24
25<p style="margin-top:12px;font-size:11px;color:#888;text-align:right">
26 Powered by <a href="https://splitforms.com" style="color:#888;text-decoration:none" target="_blank" rel="noopener">splitforms</a>
27</p>
1,000
submissions / mo, free
3
fields, ready to ship
5
code outputs
60s
from copy to inbox
Multi-step Form (Typeform-style) — example splitforms template with submissions inbox
§ 01Why it mattersthe qualifying-fields argument

Typeform charges $25/month for the question-at-a-time pattern. The pattern itself is just CSS (show one section at a time) plus a tiny step counter. We give you the working code for free — keyboard navigation, progress bar, validation per step, smooth transitions. The form still posts to splitforms in one request when the last step submits.

✦ at a glance
  • Feedback · 3 fields
  • HTML, JS, React, PHP, cURL outputs
  • One POST endpoint, no SDK
  • Honeypot + classifier, no CAPTCHA
§ 02Live previewinteractive · sandboxed · no key required

See exactly what your visitors see — and you’ll receive.

Left: the rendered form, fully interactive in a sandboxed iframe. Right: the email and dashboard view that lands the moment a visitor submits.

preview · multi-step-formlocalhost:3000
✦ what you’ll see in your inbox

Every submission becomes an email plus a dashboard row. The fields below are the exact payload your form will send. Reply-to is wired to the visitor’s email so hitting reply goes back to them.

dashboard · new submission14ms · 200 OK
SUBJECT · New feedback submission
How would you rate your experience?
★★★★★
What can we do better?
Email (optional, for follow-up)
maya@studio71.co

Iframe is sandboxed — submit doesn’t actually fire. Get your access key to wire it up live.

§ 03Three steps3 steps · ~60 seconds

Generate, embed, receive.

Three actions stand between you and your first lead. None of them require a backend, a database, or a CAPTCHA library.

STEP 01GENERATE

Copy the multi-step template

It's one HTML file — every step is a div, only one is visible at a time. The Next button validates the current step before advancing.

Create your form
key=sk_live_••••••••
STEP 02EMBED

Add your questions

Each step is a labelled <div class="step"> with one question. Add as many as you want — the progress bar updates automatically based on count.

snippethtml
<form action="https://splitforms.com/api/submit" method="POST">
  …
</form>
STEP 03RECEIVE

Submit on the final step

The Submit button on the last step does a POST to splitforms with all collected answers. Your inbox receives one email with the full structured response.

inbox · 1 newjust now
FROM contact@yoursite.com
New feedback submission
Maya Iyer maya@studio71.co
Loved your last open house in Hayes — looking for similar with parking. Pre-approved through Wells Fargo.
§ 04Copy & ship5 languages · same endpoint

Five outputs. One backend.

HTML by default. Click open the language you ship in — every variant POSTs to the same /api/submit endpoint.

01HTMLform.html27 lines
<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 feedback submission">

  <label for="rating">How would you rate your experience? *</label>
  <select id="rating" name="rating" required>
    <option value="">Choose…</option>
    <option>★★★★★</option>
    <option>★★★★☆</option>
    <option>★★★☆☆</option>
    <option>★★☆☆☆</option>
    <option>★☆☆☆☆</option>
  </select>
  <label for="feedback">What can we do better? *</label>
  <textarea id="feedback" name="feedback" placeholder="Be honest — we won't take it personally." required></textarea>
  <label for="email">Email (optional, for follow-up)</label>
  <input id="email" type="email" name="email" placeholder="you@example.com">

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

  <button type="submit">Send</button>
</form>

<p 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="noopener">splitforms</a>
</p>
02JavaScriptform.js43 lines
<form id="lf-form">
  <label for="rating">How would you rate your experience? *</label>
  <select id="rating" name="rating" required>
    <option value="">Choose…</option>
    <option>★★★★★</option>
    <option>★★★★☆</option>
    <option>★★★☆☆</option>
    <option>★★☆☆☆</option>
    <option>★☆☆☆☆</option>
  </select>
  <label for="feedback">What can we do better? *</label>
  <textarea id="feedback" name="feedback" placeholder="Be honest — we won't take it personally." required></textarea>
  <label for="email">Email (optional, for follow-up)</label>
  <input id="email" type="email" name="email" placeholder="you@example.com">
  <button type="submit">Send</button>
</form>

<p 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="noopener">splitforms</a>
</p>

<script>
  document.getElementById('lf-form').addEventListener('submit', async (e) => {
    e.preventDefault();
    const data = new FormData(e.target);
    data.set('access_key', 'YOUR_ACCESS_KEY');
    data.set('subject', 'New feedback submission');

    const res = await fetch('https://splitforms.com/api/submit', {
      method: 'POST',
      body: data,
      headers: { Accept: 'application/json' },
    });

    const json = await res.json();
    if (json.success) {
      e.target.reset();
      alert('Sent!');
    } else {
      alert('Error: ' + (json.message || 'Try again'));
    }
  });
</script>
03React / Next.jsForm.tsx58 lines
'use client';

import { useState, type FormEvent } from 'react';

export default function FeedbackForm() {
  const [status, setStatus] = useState<'idle' | 'sending' | 'sent' | 'error'>('idle');

  async function onSubmit(e: FormEvent<HTMLFormElement>) {
    e.preventDefault();
    setStatus('sending');

    const data = new FormData(e.currentTarget);
    data.set('access_key', 'YOUR_ACCESS_KEY');
    data.set('subject', 'New feedback submission');

    const res = await fetch('https://splitforms.com/api/submit', {
      method: 'POST',
      body: data,
      headers: { Accept: 'application/json' },
    });

    const json = await res.json();
    setStatus(json.success ? 'sent' : 'error');
    if (json.success) e.currentTarget.reset();
  }

  if (status === 'sent') return <p>Thanks — we&rsquo;ll be in touch.</p>;

  return (
    <>
    <form onSubmit={onSubmit}>
      <label htmlFor="rating">How would you rate your experience? *</label>
      <select id="rating" name="rating" required>
        <option value="">Choose…</option>
        <option>★★★★★</option>
        <option>★★★★☆</option>
        <option>★★★☆☆</option>
        <option>★★☆☆☆</option>
        <option>★☆☆☆☆</option>
      </select>
      <label htmlFor="feedback">What can we do better? *</label>
      <textarea id="feedback" name="feedback" placeholder="Be honest — we won't take it personally." required />
      <label htmlFor="email">Email (optional, for follow-up)</label>
      <input id="email" type="email" name="email" placeholder="you@example.com" />

      <button type="submit" disabled={status === 'sending'}>
        {status === 'sending' ? 'Sending…' : 'Send'}
      </button>

      {status === 'error' && <p>Something went wrong. Try again.</p>}
    </form>

      <p style={{ marginTop: 12, fontSize: 11, color: '#888', textAlign: 'right' }}>
        Powered by <a href="https://splitforms.com" target="_blank" rel="noopener" style={{ color: '#888', textDecoration: 'none' }}>splitforms</a>
      </p>
    </>
  );
}
04PHPsubmit.php28 lines
<?php
// Drop into a PHP page. Receives a form POST and proxies it to splitforms.com.
// Useful when you want to add server-side validation or rate limiting.

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $allowed = ['rating', 'feedback', 'email'];
    $payload = ['access_key' => 'YOUR_ACCESS_KEY'];
    $payload['subject'] = 'New feedback submission';

    foreach ($allowed as $f) {
        if (isset($_POST[$f])) $payload[$f] = $_POST[$f];
    }

    $ch = curl_init('https://splitforms.com/api/submit');
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($payload));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_HTTPHEADER, ['Accept: application/json']);
    $response = curl_exec($ch);
    $status   = curl_getinfo($ch, CURLINFO_HTTP_CODE);
    curl_close($ch);

    header('Content-Type: application/json');
    http_response_code($status);
    echo $response;
    exit;
}
?>
05cURLtest.sh7 lines
curl -X POST https://splitforms.com/api/submit \
  -H "Accept: application/json" \
  -d "access_key=YOUR_ACCESS_KEY" \
  -d "subject=New feedback submission" \
  -d "rating=★★★★★" \
  -d "feedback=Hello from cURL" \
  -d "email=jane@example.com" 

Replace YOUR_ACCESS_KEY with the key from your dashboard. That’s the only edit.

§ 06FAQ4 answered

Things people ask before they ship.

Direct answers, no marketing fluff. Missing one? Email hello@splitforms.com.

01Is this really better than Typeform?
It's free, it's yours, you own the code, and it works without their subdomain. Typeform's hosted UX has nice extras (logic jumps, calculator fields). For 80% of multi-step contact / qualification forms, this is enough.
02Can I add conditional logic / branching?
The example is linear, but the structure is plain JS — adding 'if user picked X, jump to step 4' is one if-statement in the next-button handler. We have a recipe in the docs.
03What about typeform's 'press Enter to submit'?
Already wired. Each text input listens for Enter and triggers the next step. Buttons trigger on click. Keyboard-first users have no friction.
04Does multi-step hurt SEO?
Not really — search engines index the page's content (questions, headings, hero copy), not the interaction state. The questions are all in the HTML; only their visibility is toggled.
✻ ✻ ✻

Ship your multi-step form (typeform-style) in 60 seconds.

1,000 free submissions per month. No credit card. Copy the snippet, paste your access key, watch leads land in your inbox.

Get free access key →Browse all 60 templates →
v0.1 · founders pricing locked in · early access open