© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
1 reply
Kenneth

"Create & Create another" doesn't work on custom action

I debugged it this far and concluded it only closes my modal when a custom action is used. All non-custom action creates work and leaves the modal open.

My code:
return CreateAction::make()
    ->form([
        TextInput::make('email')
            ->label(__('form_fields.email'))
            ->email()
            ->maxLength(255)
            ->required(),

        TextInput::make('password')
            ->password()
            ->label(__('form_fields.password'))
            ->maxLength(255)
            ->required(),
    ])
    ->action(function (CreateAction $action, array $data) {
        try {
            ...
        } catch (Exception $exception) {
            ... 
        }
    });
return CreateAction::make()
    ->form([
        TextInput::make('email')
            ->label(__('form_fields.email'))
            ->email()
            ->maxLength(255)
            ->required(),

        TextInput::make('password')
            ->password()
            ->label(__('form_fields.password'))
            ->maxLength(255)
            ->required(),
    ])
    ->action(function (CreateAction $action, array $data) {
        try {
            ...
        } catch (Exception $exception) {
            ... 
        }
    });


I've tried a hard createAnother function call within
->action()
->action()
itself and between
->form()
->form()
and
->action()
->action()
, but nothing seems to work. I'm out of ideas and I'm in an infinte loop with Phind and ChatGPT.

I'm using Filament v3
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

Closure on column action doesn't work
FilamentFFilament / ❓┊help
2y ago
Associate Action doesn't work
FilamentFFilament / ❓┊help
2y ago
create button doesn’t work
FilamentFFilament / ❓┊help
3y ago
Create action on custom page
FilamentFFilament / ❓┊help
2y ago