diff --git a/src/api/form-flow-page/content-types/form-flow-page/schema.json b/src/api/form-flow-page/content-types/form-flow-page/schema.json index fb7ca43..5a58233 100644 --- a/src/api/form-flow-page/content-types/form-flow-page/schema.json +++ b/src/api/form-flow-page/content-types/form-flow-page/schema.json @@ -76,6 +76,7 @@ "form-elements.input", "form-elements.textarea", "form-elements.select", + "form-elements.checkbox", "form-elements.dropdown" ], "pluginOptions": { diff --git a/src/api/vorab-check-page/content-types/vorab-check-page/schema.json b/src/api/vorab-check-page/content-types/vorab-check-page/schema.json index b8bfc1f..5ebf4ef 100644 --- a/src/api/vorab-check-page/content-types/vorab-check-page/schema.json +++ b/src/api/vorab-check-page/content-types/vorab-check-page/schema.json @@ -38,10 +38,7 @@ }, "pre_form": { "type": "dynamiczone", - "components": [ - "basic.heading", - "basic.paragraph" - ], + "components": ["basic.heading", "basic.paragraph"], "pluginOptions": { "i18n": { "localized": true @@ -54,6 +51,7 @@ "form-elements.input", "form-elements.textarea", "form-elements.select", + "form-elements.checkbox", "form-elements.dropdown" ], "pluginOptions": { diff --git a/src/components/form-elements/checkbox.json b/src/components/form-elements/checkbox.json new file mode 100644 index 0000000..5f12122 --- /dev/null +++ b/src/components/form-elements/checkbox.json @@ -0,0 +1,21 @@ +{ + "collectionName": "components_form_elements_checkboxes", + "info": { + "displayName": "Checkbox", + "icon": "check" + }, + "options": {}, + "attributes": { + "label": { + "type": "string", + "required": false + }, + "name": { + "type": "string", + "required": true + }, + "value": { + "type": "string" + } + } +}