© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
10 replies
Adapt.Patrick

Infolist Action `->createAnother()` doesn't exist

We want to be able to reproduce the
->createAnother()
->createAnother()
functionality which exists on a
Filament\Actions\CreateAction
Filament\Actions\CreateAction
component but Infolists only accept instances of
Filament\Infolists\Components\Actions\Action
Filament\Infolists\Components\Actions\Action
which doesn't have the
->createAnother()
->createAnother()
option.

I have thought about creating our own Action in our codebase, which extends the
CreateAction
CreateAction
class (to inherit the
->createAnother()
->createAnother()
function), but using this in an Infolist instance would also fail to satisfy the requirement for it to be an instance of
Filament\Infolists\Components\Actions\Action
Filament\Infolists\Components\Actions\Action
.

How can we go about doing this? 🤔
Solution
try this

->action(function (array $data, Action $action, array $arguments, Form $form) {

    if ($arguments['another'] ?? false) {

        //do something

        $form->fill();
        $action->halt();

        return;
    }

    //do something
})
->extraModalFooterActions(fn (Action $action) => [
    $action->makeModalSubmitAction('createAnother', arguments: ['another' => true])
])
->action(function (array $data, Action $action, array $arguments, Form $form) {

    if ($arguments['another'] ?? false) {

        //do something

        $form->fill();
        $action->halt();

        return;
    }

    //do something
})
->extraModalFooterActions(fn (Action $action) => [
    $action->makeModalSubmitAction('createAnother', arguments: ['another' => true])
])
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

createAnother in custom action
FilamentFFilament / ❓┊help
15mo ago
Infolist columns doesn't works
FilamentFFilament / ❓┊help
3y ago
Repeater simple doesn't exist
FilamentFFilament / ❓┊help
3y ago
In infolist placeholder doesn't work?
FilamentFFilament / ❓┊help
3y ago