From 56eae8a3e99c9e05281555de63de9d09e1e382d1 Mon Sep 17 00:00:00 2001 From: Rob Gietema Date: Mon, 30 Sep 2024 16:35:51 +0200 Subject: [PATCH] Set default fields. --- frontend/packages/volto-form-block/src/index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/packages/volto-form-block/src/index.js b/frontend/packages/volto-form-block/src/index.js index 24c46e25..a4c0044e 100644 --- a/frontend/packages/volto-form-block/src/index.js +++ b/frontend/packages/volto-form-block/src/index.js @@ -60,21 +60,29 @@ const applyConfig = (config) => { blockSchema: schemaFormBlockSchema, fieldSchema: FieldSchema, filterFactory: [ - 'label_textline_field', 'label_text_field', 'label_choice_field', - 'label_multi_choice_field', 'label_boolean_field', 'label_date_field', 'label_datetime_field', 'File Upload', 'label_email', + 'radio_group', + 'checkbox_group', 'hidden', 'static_text', + 'number', + 'textarea', + 'time', ], additionalFactory: [ + { value: 'textarea', label: 'Textarea' }, + { value: 'radio_group', label: 'Radio Group' }, + { value: 'checkbox_group', label: 'Checkbox Group' }, { value: 'hidden', label: 'Hidden' }, { value: 'static_text', label: 'Static Text' }, + { value: 'number', label: 'Number' }, + { value: 'time', label: 'Time' }, ], defaultSender: 'noreply@plone.org', defaultSenderName: 'Plone',