© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•14mo ago•
2 replies
Hedi

conditionally show editForm in Select

hello, i have a table that holds names, the user_id in the Name might be null which means it's a default Name, but users can create their own names and edit them.

but i don't want the default names to be editable, how can i hide the editForm when the user_id is null? i haven't been able to come up with an idea
Select::make('name_id')
    ->relationship('name', 'name')
    ->editOptionForm([
        Forms\Components\TextInput::make('name')
            ->required(),
    ]),
Select::make('name_id')
    ->relationship('name', 'name')
    ->editOptionForm([
        Forms\Components\TextInput::make('name')
            ->required(),
    ]),

here's what i have so far, thanks in advance!
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 Show RelationManager in a View
FilamentFFilament / ❓┊help
3y ago
Conditionally show Relationship (manager)
FilamentFFilament / ❓┊help
2y ago
Conditionally show relation manager
FilamentFFilament / ❓┊help
2y ago
Show navigation and topbar conditionally
FilamentFFilament / ❓┊help
16mo ago