© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3mo ago•
2 replies
AlexKapustin

Pre-select records on the table

I am trying to find a way how can I select records on backend?

A bit of context. I need a way to export specific records. Potentially I can just write custom action that would accept csv file with "specific" records and generate export file.
But this is very niche solution.
I would rather create an action that would accept file and as a result it would select those specific items.
Then we can use any bulk action, such as export, delete, whatever.

Here is my test action
Action::make('preselect_items')
                    ->icon(Heroicon::OutlinedFire)
                    ->label('Preselect Items')
                    ->color('gray')
                    ->action(function (ListProducts $livewire) {
                        $livewire->selectedTableRecords = ['53862'];
Action::make('preselect_items')
                    ->icon(Heroicon::OutlinedFire)
                    ->label('Preselect Items')
                    ->color('gray')
                    ->action(function (ListProducts $livewire) {
                        $livewire->selectedTableRecords = ['53862'];



I can see that selected records coming back in livewire update ajax, but table is not selecting them.

Is there a way to "reload" table UI to select those items?

Thanks!
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

Pre select records
FilamentFFilament / ❓┊help
2y ago
Pre-select filters in table
FilamentFFilament / ❓┊help
3y ago
auto select records in table when table loaded
FilamentFFilament / ❓┊help
13mo ago
Disabling multiple select on records?
FilamentFFilament / ❓┊help
3y ago