© 2026 Hedgehog Software, LLC

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

Conditionally hide a section

Hi.

Is it possible to conditionally hide a Section, based on another value on the form?

E.g.:

//...

Forms\Components\Section::make('Options')
    ->schema([
        Forms\Components\Toggle::make('receiveable')
            ->required(),
    ])
// Conditional Section for 'receivable'
Forms\Components\Section::make('Receivable Details')
->schema([
    // Fields goes here...
])->hidden(fn ($get): bool => $get('receiveable') == false)
//...

Forms\Components\Section::make('Options')
    ->schema([
        Forms\Components\Toggle::make('receiveable')
            ->required(),
    ])
// Conditional Section for 'receivable'
Forms\Components\Section::make('Receivable Details')
->schema([
    // Fields goes here...
])->hidden(fn ($get): bool => $get('receiveable') == false)


The section
Receivable Details
Receivable Details
is hidden on page load, but I want to show/hide it based on the toggle value from
receivable
receivable
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

Conditionally hide relation manager
FilamentFFilament / ❓┊help
2y ago
Conditionally hide table summary
FilamentFFilament / ❓┊help
2y ago
conditionally hide relation page
FilamentFFilament / ❓┊help
3y ago
Conditionally hide action button.
FilamentFFilament / ❓┊help
3y ago