#1 India's Top IT Training Institute
×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
Mentors

Mentors

Meet the industry experts who train and guide you through your course.

Read More →
Free Resources

Free Resources

Free tutorials, interview questions, tools and calculators to help you learn.

Explore →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

Comprehensive Guide to Designing and Building Waitlist Forms for Product Launches

A waitlist form has one job: collect the email addresses of people who want your product before it exists, with their consent, and give them a reason to stay interested until launch. Here is how to design one and build it with plain HTML, JavaScript and a small Node.js endpoint.

Master Pre-Launch Marketing Excellence

Design decisions first

Ask for as little as possible

Every extra field loses some people. For most launches, email alone is enough. Add one optional question only if it changes what you do, for example "What will you use it for?" with three choices, which helps you segment launch emails. Phone numbers are tempting in India because WhatsApp updates work well, but make the field optional and say clearly how you will use it.

Say what happens next

People sign up more readily when they know what they are joining. Under the button, write one honest line: "We'll email you once when early access opens, and a short update before that. No spam." If you will not have a launch date for months, do not invent one.

Give a reason to join now

  • Early access before public launch.
  • A founding-member price, if you will genuinely offer one.
  • A position in the queue that moves up when friends join through your link.

Collect consent properly

India's Digital Personal Data Protection Act, 2023 and laws such as the EU's GDPR expect clear notice of why you collect personal data and a real choice. Use an unticked checkbox linked to a short privacy notice, store when consent was given, and make unsubscribing one click.

The HTML

Real <label> elements, the right input types and a live region for messages make the form usable with screen readers and mobile keyboards:

<form id="waitlist" novalidate>
  <h2>Get early access</h2>

  <label for="email">Email address</label>
  <input id="email" name="email" type="email" autocomplete="email" required>

  <label for="use">What will you use it for? (optional)</label>
  <select id="use" name="use">
    <option value="">Choose one</option>
    <option>College projects</option>
    <option>Work</option>
    <option>Personal</option>
  </select>

  <!-- honeypot: hidden from people, often filled by bots -->
  <input name="company" type="text" tabindex="-1" autocomplete="off"
         style="position:absolute;left:-9999px" aria-hidden="true">

  <label>
    <input name="consent" type="checkbox" required>
    I agree to receive launch emails. <a href="/privacy">Privacy notice</a>
  </label>

  <button type="submit">Join the waitlist</button>
  <p id="msg" role="status" aria-live="polite"></p>
</form>

Style the button so it is the most obvious thing in the section, keep the form in one column on mobile, and make sure tap targets are at least about 44 pixels high.

The JavaScript

This handler validates in the browser, disables the button while sending, and shows the queue position the server returns:

const form = document.getElementById("waitlist");
const msg = document.getElementById("msg");

form.addEventListener("submit", async (e) => {
  e.preventDefault();
  const data = Object.fromEntries(new FormData(form));
  data.consent = form.consent.checked;

  if (!form.email.checkValidity()) {
    msg.textContent = "Please enter a valid email address.";
    form.email.focus();
    return;
  }
  if (!data.consent) {
    msg.textContent = "Please tick the consent box to join.";
    return;
  }

  const button = form.querySelector("button");
  button.disabled = true;
  msg.textContent = "Joining...";

  try {
    const res = await fetch("/api/waitlist", {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify(data),
    });
    const out = await res.json();
    msg.textContent = res.ok
      ? (out.position ? `You're in! You are number ${out.position} on the list.` : "You're in!")
      : out.error;
    if (res.ok) form.reset();
  } catch {
    msg.textContent = "Network problem. Please try again.";
  } finally {
    button.disabled = false;
  }
});

Browser checks are for convenience only; the server must validate again, because anyone can send requests without your page. For more on form events and fetch, see building interactive survey forms, which uses the same pattern for longer forms.

A minimal backend

This Node.js server uses only the built-in http module. It checks the honeypot, validates the email, requires consent, ignores duplicates (case-insensitive) and returns a position. It keeps data in memory to stay short; use a database in production.

const http = require("http");

const signups = new Map();               // email -> position (use a database in production)
const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;

http.createServer((req, res) => {
  if (req.method !== "POST" || req.url !== "/api/waitlist") {
    res.writeHead(404).end();
    return;
  }
  let body = "";
  req.on("data", chunk => (body += chunk));
  req.on("end", () => {
    let data;
    try { data = JSON.parse(body); } catch { data = {}; }
    const email = String(data.email || "").trim().toLowerCase();
    const send = (code, obj) => {
      res.writeHead(code, { "Content-Type": "application/json" });
      res.end(JSON.stringify(obj));
    };
    if (data.company) return send(200, { ok: true });          // honeypot filled: quietly ignore bots
    if (!EMAIL.test(email)) return send(400, { error: "Please enter a valid email." });
    if (!data.consent) return send(400, { error: "Please accept the privacy notice." });
    if (!signups.has(email)) signups.set(email, signups.size + 1);
    send(200, { ok: true, position: signups.get(email) });
  });
}).listen(3000, () => console.log("Waitlist API on http://localhost:3000"));

Testing it with four requests (two new emails, a repeat in capitals with a trailing space, and an invalid email) gave:

200 {"ok":true,"position":1}
200 {"ok":true,"position":2}
200 {"ok":true,"position":1}
400 {"error":"Please enter a valid email."}

The repeat sign-up gets its original position instead of a duplicate row. In a real deployment, serve the page and API from the same domain (or configure CORS), add rate limiting, and store signups in a database such as PostgreSQL, MySQL or a hosted option like Firebase.

No-code alternatives

If you do not want to run a server, form services (Formspree, Tally, Google Forms) and email platforms (Mailchimp, Brevo, ConvertKit) offer hosted forms or an endpoint your HTML can post to. You trade control and branding for speed. Check where they store data and whether their free plan's limits fit your expected signups.

After the signup

  1. Confirm by email. A double opt-in ("click to confirm") keeps fake and mistyped addresses off the list.
  2. Send one useful update before launch: a short demo video, a progress note or an invitation to give feedback.
  3. Add a referral link if you use queue positions, and make the rules simple.
  4. Measure the form: visitors to the page, form starts and completed signups. A big drop between start and finish usually means too many fields or a confusing error.

The page around the form matters as much as the form. Building landing pages that convert and writing effective CTAs cover headline and button copy, and AI for landing-page testing covers experiments.

FAQs

What fields should a waitlist form have?

Usually just an email address and a consent checkbox. Add one optional question only if it will change how you communicate with signups.

How do I stop spam signups on a waitlist form?

Combine a hidden honeypot field, server-side validation, rate limiting and a confirmation email. Add a CAPTCHA only if spam continues, since it adds friction for real users.

Do I need a backend to build a waitlist form?

Not necessarily. Hosted form services and email marketing platforms can receive submissions for you. A small backend gives you more control over data, duplicates and queue positions.

Placed Students

Our Clients

Partners

...