HTML Checkbox — toggle and multi-select (live demo)
A checkbox is an <input type="checkbox"> that lets a user turn a single option on or off, or pick several options from a group (each with its own name). When checked, its value is submitted; when unchecked, nothing is sent for it at all. Below is a working form with checkboxes.
Updated June 2026 · The <input type="checkbox"> element · 12 elements in the reference
<form action="https://splitforms.com/api/submit" method="POST">
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
<label for="name">Name</label>
<input type="text" id="name" name="name" required>
<fieldset>
<legend>I'm interested in (tick all that apply)</legend>
<label><input type="checkbox" name="interest" value="newsletter"> Newsletter</label>
<label><input type="checkbox" name="interest" value="beta"> Beta access</label>
<label><input type="checkbox" name="interest" value="demo"> Product demo</label>
</fieldset>
<label><input type="checkbox" name="agree_terms" value="yes" required> I agree to the terms</label>
<button type="submit">Send</button>
</form>Replace YOUR_ACCESS_KEY with a key from your free splitforms dashboard. The form posts to one endpoint — submissions land in your inbox and dashboard with spam filtering built in.
Unchecked = not submitted
If a checkbox is unchecked, its name is absent from the submission entirely — not sent as false. Detect this server-side as "key missing".
Without value, you get "on"
A checked checkbox with no value= submits the string "on". Always set a meaningful value so you can tell states apart.
Checkbox vs radio
Checkboxes are independent (tick any number); radios in a group are mutually exclusive (pick one). Use radios when exactly one choice is allowed.