© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•10mo ago•
13 replies
Anik

disable wizard next button

   Forms\Components\Wizard::make([
                Forms\Components\Wizard\Step::make('Customer')
                    ->columns(2)
                    ->schema(fn(): array => $this->getStepOneWizardFormSchema())
                    ->afterValidation(fn() => $this->resolveCustomer()),

                Forms\Components\Wizard\Step::make('Cart')
                    ->schema(fn(): array => $this->getStepTwoWizardFormSchema())
                    ->afterValidation(fn(Forms\Get $get) => $this->validateCartBeforeCheckout($get)),

                Forms\Components\Wizard\Step::make('Checkout')
                    ->schema(fn(): array => $this->getStepThreeWizardFormSchema()),
            ])
                ->contained(false)
                ->columnSpanFull()
                ->nextAction(
                    fn(Action $action): Action => $action
                        // hide the button until we have a $this->customer
                        ->hidden(true)
                        ->disabled(true)
                        ->livewireTarget(null)
                ),
   Forms\Components\Wizard::make([
                Forms\Components\Wizard\Step::make('Customer')
                    ->columns(2)
                    ->schema(fn(): array => $this->getStepOneWizardFormSchema())
                    ->afterValidation(fn() => $this->resolveCustomer()),

                Forms\Components\Wizard\Step::make('Cart')
                    ->schema(fn(): array => $this->getStepTwoWizardFormSchema())
                    ->afterValidation(fn(Forms\Get $get) => $this->validateCartBeforeCheckout($get)),

                Forms\Components\Wizard\Step::make('Checkout')
                    ->schema(fn(): array => $this->getStepThreeWizardFormSchema()),
            ])
                ->contained(false)
                ->columnSpanFull()
                ->nextAction(
                    fn(Action $action): Action => $action
                        // hide the button until we have a $this->customer
                        ->hidden(true)
                        ->disabled(true)
                        ->livewireTarget(null)
                ),


Hello, I noticed that I cannot hide/disable the next button with the wizard nextAction. Can anyone guide me on how to disable the next button until specific conditions are met.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Enable / Disable Wizard Next step button
FilamentFFilament / ❓┊help
2y ago
Wizard Form disable next/previous
FilamentFFilament / ❓┊help
16mo ago
Disable back button for wizard on modal
FilamentFFilament / ❓┊help
16mo ago
Wizard step next button always showing loader
FilamentFFilament / ❓┊help
17mo ago