filament-fullcalendar icon indicating copy to clipboard operation
filament-fullcalendar copied to clipboard

CreateAction and default value

Open adrien-delhom opened this issue 6 months ago • 0 comments

Hi 👋

I'm not sure if this is a package issue.

The default values don't come up, and neither does the current tenant. To remedy this, I manually inject ($form->fill()) the default data and the primary key of the tenant.

protected function headerActions(): array
{
    return [
        Actions\CreateAction::make()
            ->mountUsing(function (Form $form, array $arguments) {}) # works well if comment this
            ->slideOver(),
    ];
}

public function getFormSchema(): array
{
    return [
        TextInput::make('test')
            ->default('hello world') # this not appear
    ];
}

adrien-delhom avatar Jul 31 '24 12:07 adrien-delhom