F
Filamentβ€’4mo 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')
]),
]),
]);
}
}
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([...
Jump to solution
2 Replies
frame
frameOPβ€’4mo ago
https://github.com/filamentphp/filament/issues/16598 created an issue, hopefully its not just me missing something πŸ™
GitHub
v4 $this->form->fill throws ActionNotResolvableException when using...
Package filament/filament Package Version v4.0.0-beta6 Laravel Version v12.19.3 Livewire Version v3.6.3 PHP Version PHP 8.4.1 Problem description When trying to run public function mount(): void { ...
Solution
frame
frameβ€’4mo ago
Code was missing a statePath
return $schema
->statePath('data')
->schema([
...
return $schema
->statePath('data')
->schema([
...

Did you find this page helpful?