Skip to content

CreateAction and default value #207

@adrien-delhom

Description

@adrien-delhom

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
    ];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions