© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•7mo ago•
8 replies
Oussama

TableSelect V4 odd behaviour

Hello,

I know that this is v4, which is not out per se but I was hoping to shed some light on this.

I was aiming to achieve the following UI where there's an action, it opens a modal with a table and allows me to select multiple records.

I got it to work but in a weird way 👇

Action::make('invite_crews')
    ->modalWidth(Width::FiveExtraLarge)
    ->schema([
        TableSelect::make('crew_ids')
            ->hiddenLabel()
            ->schema([
                // I have no idea why this makes multi-select work
                TextInput::make('literally_whatever_here')->hidden(), 
            ])
            ->tableConfiguration(AvailableCrewsTable::class)
            ->required()
            ->multiple(), // not enough on its own.
    ])
Action::make('invite_crews')
    ->modalWidth(Width::FiveExtraLarge)
    ->schema([
        TableSelect::make('crew_ids')
            ->hiddenLabel()
            ->schema([
                // I have no idea why this makes multi-select work
                TextInput::make('literally_whatever_here')->hidden(), 
            ])
            ->tableConfiguration(AvailableCrewsTable::class)
            ->required()
            ->multiple(), // not enough on its own.
    ])


If remove the
->schema
->schema
call with that hidden field, there won't be any multi-select related features (select all, deselect all) and won't be able to select more than one.

The
TableSelect
TableSelect
isn't documented as of yet AFAIK, so maybe I'm not supposed to use it directly?

The table configuration is fairly simple
public static function configure(Table $table): Table
{
    return $table
        ->query(fn () => Crew::query())
        ->columns([
            TextColumn::make('name')->searchable(),
            TextColumn::make('email'),
        ]);
}
public static function configure(Table $table): Table
{
    return $table
        ->query(fn () => Crew::query())
        ->columns([
            TextColumn::make('name')->searchable(),
            TextColumn::make('email'),
        ]);
}
image.png
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

[Filament v4] Filtering TableSelect with Tabs
FilamentFFilament / ❓┊help
8mo ago
Experiencing odd behaviour with custom Actions
FilamentFFilament / ❓┊help
2y ago
Odd "jumping" behaviour when using a toggle
FilamentFFilament / ❓┊help
2y ago
Very odd behaviour with calling a function but modal opens instead.
FilamentFFilament / ❓┊help
2y ago