hidden input

An <input type="hidden"> that is not shown but whose value is sent when the form is submitted.

In more detail

Custom controls such as a switch built from a button are not real form fields. Adding a hidden input that mirrors their value lets them take part in ordinary form submission.

Related terms

Taught in

References