Type key: checkbox. Renders one checkbox with the question as its label, typically for a consent or confirmation. In the editor this is the Checkbox block.
A question: the question rules apply, and it can sit in a layout row column.
Meta fields
Section titled “Meta fields”The meta fields of this node type are listed in the request body of Replace the draft document, under pages › nodes, in the checkbox tab.
Example
Section titled “Example”{ "public_id": "nCoc", "sort_order": 1, "type": "checkbox", "meta": { "question": "<span>I agree to the code of conduct</span>", "validation": { "required": true } }}Defaults and rules
Section titled “Defaults and rules”- A required checkbox must be ticked before respondents can continue, which suits terms and consents.
default_valueis a boolean;truerenders the box ticked.placeholderis accepted but not shown to respondents.