Checkbox JSON Form

Edit a single boolean using a checkbox.

How this example works

Add x-widget: checkbox to a boolean field. The checked state submits true or false; required requires the property to exist and does not require true. An enum such as [true] can require acceptance. Reset restores the false default.

Read the supported schema guide

Checkbox example

Submitted JSON

Submit the form to see its JSON.