© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Ander

Wizard still showing "Next" when steps hidden dynamically

I'm trying to hide a step depending on the variable 'applies_to_all_employees,' the step hides, but the 'next' button doesn't change to 'create.' In version 2 of filament, this did work.

 protected function getSteps()
    {
        return [
                Step::make(__('bonuses.create.bonus_name'))
                    ->schema(
                        BonusesResource::getFormSchema('0')
                    ),
                Step::make(__('bonuses.create.add_employees'))
                    ->hidden(fn (Get $get) => empty($get('applies_to_all_employees')) ? false : true)
                    ->schema([
                        Grid::make(['default' => 1, 'sm' => 1, 'xl' => 2])
                            ->schema([
                                ...
                            ])
                    ]),
            ];
    }
 protected function getSteps()
    {
        return [
                Step::make(__('bonuses.create.bonus_name'))
                    ->schema(
                        BonusesResource::getFormSchema('0')
                    ),
                Step::make(__('bonuses.create.add_employees'))
                    ->hidden(fn (Get $get) => empty($get('applies_to_all_employees')) ? false : true)
                    ->schema([
                        Grid::make(['default' => 1, 'sm' => 1, 'xl' => 2])
                            ->schema([
                                ...
                            ])
                    ]),
            ];
    }
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

Wizard still showing "Next" when steps hidden dynamically
FilamentFFilament / ❓┊help
3y ago
Wizard skips steps when clicking next
FilamentFFilament / ❓┊help
16mo ago
Wizard & steps not showing forCreateAction
FilamentFFilament / ❓┊help
2y ago
Wizard Trigger Next Steps From Notification.
FilamentFFilament / ❓┊help
12mo ago