FilamentF
Filamentβ€’7mo ago
frame

Wizard and ActionNotResolvableException

When trying to use $this->form->fill() on a page with a Wizard I get an error Filament\Actions\Exceptions\ActionNotResolvableException: An action tried to resolve without a name. I'm probably lacking some obvious trait but I cannot figure it out. What am I missing? πŸ€”

I get the error whether I try InteractsWithSchemas or InteractsWithForms.

class TestForm extends Page
{
    use InteractsWithSchemas;
    protected string $view = 'filament.pages.test-form';

    public function mount(): void
    {
        $this->form->fill([]);
    }

    public function form(Schema $schema): Schema
    {
        return $schema
            ->schema([
                Wizard::make([
                    Step::make('First step')
                        ->schema([
                            TextInput::make('name')
                                ->label('Name')
                        ]),
                    ]),
                ]);
    }
}
Solution
Code was missing a statePath
return $schema
    ->statePath('data')
    ->schema([
...
Was this page helpful?