public bool $showMessage = false;
...
Wizard::make([
Wizard\Step::make('Step...')
->schema([
// ...
]),
])
->hidden(fn (): bool => $this->showMessage)
->submitAction(new HtmlString(Blade::render(<<<'BLADE'
<x-filament::button
type="submit"
size="sm"
>
Submit
</x-filament::button>
BLADE))),
Placeholder::make('message')
->content('The form was submitted successfully!')
->visible(fn (): bool => $this->showMessage)
public bool $showMessage = false;
...
Wizard::make([
Wizard\Step::make('Step...')
->schema([
// ...
]),
])
->hidden(fn (): bool => $this->showMessage)
->submitAction(new HtmlString(Blade::render(<<<'BLADE'
<x-filament::button
type="submit"
size="sm"
>
Submit
</x-filament::button>
BLADE))),
Placeholder::make('message')
->content('The form was submitted successfully!')
->visible(fn (): bool => $this->showMessage)