© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
ChesterS

Access form data in modal action

I have the following action

Action::make('foo')
    ->form([
        TextInput::make('fooBar')
    ])
    ->extraModalFooterActions([
        Action::make('bar')
            ->action(function ($record, array $data) {
              // $data  is empty here
            }),
    ])
    ->action(function ($record, array $data) {
      // $data is available here because the form is submitted
    }),
Action::make('foo')
    ->form([
        TextInput::make('fooBar')
    ])
    ->extraModalFooterActions([
        Action::make('bar')
            ->action(function ($record, array $data) {
              // $data  is empty here
            }),
    ])
    ->action(function ($record, array $data) {
      // $data is available here because the form is submitted
    }),


Is there a way to get access to the value of the
fooBar
fooBar
field inside
Action::make('bar')
Action::make('bar')
?
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

Live data in an action modal form
FilamentFFilament / ❓┊help
3y ago
Pass action form data to extra modal footer actions
FilamentFFilament / ❓┊help
3y ago
Action Modal $data
FilamentFFilament / ❓┊help
2y ago
Form Builder: Modal-Form Action
FilamentFFilament / ❓┊help
3y ago