F
Filamentβ€’6mo ago
Goldenvale

Disabling previous button on a form wizard

After each step I run ->afterValidation to create a database entry since the next steps require an id. But I want to disable going back to the previous step. Is it possible to do this in Filament?
3 Replies
Lara Zeus
Lara Zeusβ€’6mo ago
try
->previousAction(
fn (Action $action) => $action->disabeld(),
)
->previousAction(
fn (Action $action) => $action->disabeld(),
)
ref https://filamentphp.com/docs/3.x/forms/layout/wizard#customizing-the-wizard-action-objects
Goldenvale
Goldenvaleβ€’6mo ago
Thanks! How does that work with actions that have steps? Action doesn't have a previousAction method.
Lara Zeus
Lara Zeusβ€’6mo ago
ya I dont thing there is a method for it πŸ™‚