F
Filamentβ€’13mo 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β€’13mo 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
GoldenvaleOPβ€’13mo ago
Thanks! How does that work with actions that have steps? Action doesn't have a previousAction method.
Lara Zeus
Lara Zeusβ€’13mo ago
ya I dont thing there is a method for it πŸ™‚
Want results from more Discord servers?
Add your server