© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
Damien

makeModalSubmitAction arguments are empty?

I am trying to use the above method to implment a 'save & create another' action however the arguments are always empty even though I am passing it. I took the the example straight from the documentation, code below:

->extraModalFooterActions(fn (Action $action): array => [
    // TODO: Get argument to be received by action to identify when modal should be reloaded
    $action->makeModalSubmitAction('createAnother', arguments: ['another' => true]),
])
->action(function (array $arguments) {
    if ($arguments['another'] ?? false) {
        // Reset the form and don't close the modal
        dd('another');
    }

    // ... other form logic
});
->extraModalFooterActions(fn (Action $action): array => [
    // TODO: Get argument to be received by action to identify when modal should be reloaded
    $action->makeModalSubmitAction('createAnother', arguments: ['another' => true]),
])
->action(function (array $arguments) {
    if ($arguments['another'] ?? false) {
        // Reset the form and don't close the modal
        dd('another');
    }

    // ... other form logic
});


Not really sure why $arguments is always empty.
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

Action $arguments returning empty in visible closure
FilamentFFilament / ❓┊help
17mo ago
Adding a confirmation dialog to makeModalSubmitAction
FilamentFFilament / ❓┊help
7mo ago
Arguments are lost on reactive forms
FilamentFFilament / ❓┊help
3y ago
emptyStateHeading and emptyStateDescription not working in RelationManager tables
FilamentFFilament / ❓┊help
17mo ago