© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
Wiin

Edit Action in table in custom livewire component not showing fields in modal

I'm loading a table with an action into a custom livewire page, the table loads fine and it works perfectly, but for some reason when I click the edit button (which opens a modal to edit it, since its a simple resource) the form on the modal is empty. I can set the form manually on the action and it works, but im not sure why its not loading the fields by default. It works when I do it from the specific resource page.

public function table(Table $table): Table
{
return EnvironmentConfigurationResource::table($table)->query(fn () => EnvironmentConfiguration::query());
}

public static function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('key')
->label(('Key'))
->searchable(),
Tables\Columns\TextColumn::make('value')
->label(
('Value'))
->searchable(),
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
]);
}
image.png
Solution
It's because EditAction works like normal action in custom page. you need to define forms (https://filamentphp.com/docs/3.x/actions/modals#modal-forms) and prefill data (https://filamentphp.com/docs/3.x/actions/modals#filling-the-form-with-existing-data) and lastly you need to crate your action to update the data
Modals - Actions - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Livewire Table component in a action modal
FilamentFFilament / ❓┊help
10mo ago
Modal Action with Custom Livewire component
FilamentFFilament / ❓┊help
3y ago
Showing Table in Wizard (Custom Livewire component)
FilamentFFilament / ❓┊help
5mo ago
Action modal in livewire component not working
FilamentFFilament / ❓┊help
3y ago