Interview Prep
Interview questions, roadmaps and practice sets
Tutorials
Free tutorials on 30+ topics
Blog
Career guides, skills and interview tips
Free PDFs
Notes, cheat sheets and question banks
Certificates
Free skill tests and course certificates
Tools & Whiteboard
Free tools you can use right in the browser
Practice Tests
Mock tests, MCQs and quick Q&A
Free LMS
Learn on the Uncodemy LMS
Choose the best training program according to your career.
Improve the performance of your business with our innovative Industrial Training Program.
Read More →
Our instructor-led training classes are designed to make you an expert.
Read More →
Real-life case studies are a great way to demonstrate your practical knowledge.
Read More →
Explore blogs, latest technologies and industry updates with practical examples.
Read More →Browse all available training programs and choose the right one for your career.
Read More →Know more about who we are and what we stand for.
Discover our mission to equip individuals with essential IT skills and industry expertise.
Read More →
Free tutorials, interview questions, tools and calculators to help you learn.
Explore →Learn, practice and plan your career — bilkul free.
Book a free video counselling session and pick the right course for you.
Read More →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.

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.
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.
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.
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.
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.
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.
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.
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.
Usually just an email address and a consent checkbox. Add one optional question only if it will change how you communicate with signups.
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.
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.