diff --git a/app/Filament/Forms/Resources/FormVersionResource.php b/app/Filament/Forms/Resources/FormVersionResource.php index 9ad07a6..e4d2ce8 100644 --- a/app/Filament/Forms/Resources/FormVersionResource.php +++ b/app/Filament/Forms/Resources/FormVersionResource.php @@ -352,6 +352,7 @@ public static function form(Form $form): Form 'validations' => [], 'conditionals' => [], 'instance_id' => 'nestedField' . $index + 1, + 'customize_label' => 'default', ]; })->toArray(); $set('form_fields', $formFields); diff --git a/app/Filament/Forms/Resources/FormVersionResource/Pages/EditFormVersion.php b/app/Filament/Forms/Resources/FormVersionResource/Pages/EditFormVersion.php index b0cfbb0..9928caf 100644 --- a/app/Filament/Forms/Resources/FormVersionResource/Pages/EditFormVersion.php +++ b/app/Filament/Forms/Resources/FormVersionResource/Pages/EditFormVersion.php @@ -247,7 +247,7 @@ protected function mutateFormDataBeforeFill(array $data): array 'form_field_id' => $field->form_field_id, 'label' => $field->label, 'custom_label' => $field->custom_label ?? $formField->label, - 'customize_label' => $field->custom_label ?? null, + 'customize_label' => $field->customize_label ?? null, 'custom_data_binding_path' => $field->custom_data_binding_path ?? $formField->data_binding_path, 'customize_data_binding_path' => $field->custom_data_binding_path ?? null, 'custom_data_binding' => $field->custom_data_binding ?? $formField->data_binding,