© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•17mo ago•
1 reply
Sam ツ

Submit button when editing table data

Hi,

I am new to laravel and filament, in a table I have several fields that can be updated such as date and some booleans:

After some states have been updated I want to send customers a mail with an update regarding their order. Problem is that I do not want these mails to be directly sent and I'd rather have a submit button in the corner that the changes to the table can be submitted to prevent incorrect mails being send.

What would be a good method doing this, here is an example of one field that is being updated:

                ToggleColumn::make('no_longer_available')->label("No Longer Available")->afterStateUpdated(function ($record) {
                    if ($record->no_longer_available == true) {
                        $this->orderNotificationService->notifyCustomerNLA($record->order_id, $record->id);

                    }
                }),
                ToggleColumn::make('no_longer_available')->label("No Longer Available")->afterStateUpdated(function ($record) {
                    if ($record->no_longer_available == true) {
                        $this->orderNotificationService->notifyCustomerNLA($record->order_id, $record->id);

                    }
                }),
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

submit button
FilamentFFilament / ❓┊help
2y ago
Disable Submit Button
FilamentFFilament / ❓┊help
3y ago
Wizard submit button
FilamentFFilament / ❓┊help
3y ago