diff --git a/app/Form/Fields/CheckboxesField.php b/app/Form/Fields/CheckboxesField.php index 62f5badc..45d1546c 100644 --- a/app/Form/Fields/CheckboxesField.php +++ b/app/Form/Fields/CheckboxesField.php @@ -14,7 +14,7 @@ class CheckboxesField extends Field public static function meta(): array { return [ - ['key' => 'options', 'default' => [], 'rules' => ['options' => 'array', 'options.*' => 'string'], 'label' => 'Optionen'], + ['key' => 'options', 'default' => [], 'rules' => ['options' => 'array', 'options.*' => 'required|string'], 'label' => 'Optionen'], ]; } diff --git a/resources/js/views/formtemplate/CheckboxField.vue b/resources/js/views/formtemplate/CheckboxField.vue index d54235dd..0b90dce7 100644 --- a/resources/js/views/formtemplate/CheckboxField.vue +++ b/resources/js/views/formtemplate/CheckboxField.vue @@ -1,14 +1,21 @@ diff --git a/resources/js/views/formtemplate/TextareaField.vue b/resources/js/views/formtemplate/TextareaField.vue index 375a3dcb..bdaf9e92 100644 --- a/resources/js/views/formtemplate/TextareaField.vue +++ b/resources/js/views/formtemplate/TextareaField.vue @@ -1,16 +1,14 @@