© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
13 replies
Eskie

replaceMountedAction

How to use
replaceMountedAction
replaceMountedAction
on resource?
Solution
I think you need to add the sendMoneyConfirmation method to the ListPage

->headerActions([
    Tables\Actions\Action::make('sendMoney')
        ->form([
            //...
            TextInput::make('amount'),
        ])
        ->action(function (array $data, array $arguments, Page $livewire) {
            $livewire->replaceMountedAction('sendMoneyConfirmation');
        }),
])
->headerActions([
    Tables\Actions\Action::make('sendMoney')
        ->form([
            //...
            TextInput::make('amount'),
        ])
        ->action(function (array $data, array $arguments, Page $livewire) {
            $livewire->replaceMountedAction('sendMoneyConfirmation');
        }),
])


ListXX.php
public function sendMoneyConfirmationAction(): Action
{
    return Action::make('sendMoneyConfirmation')
        ->requiresConfirmation()
        ->action(function (array $arguments) {
            //...
        });
}
public function sendMoneyConfirmationAction(): Action
{
    return Action::make('sendMoneyConfirmation')
        ->requiresConfirmation()
        ->action(function (array $arguments) {
            //...
        });
}
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

How to pass form data when using replaceMountedAction()
FilamentFFilament / ❓┊help
2y ago
`replaceMountedAction()` seems not to be available in the `modalCancelAction` is that correct?
FilamentFFilament / ❓┊help
2y ago
Trigger a modal action from within Repeater extraItemActions
FilamentFFilament / ❓┊help
5mo ago
Modal confirmation before click save button in modal
FilamentFFilament / ❓┊help
15mo ago