FilamentF
Filament16mo ago
Wannes

Mount action after another action

Hi,

Is it possible to open a new action form when pressing "Send" on the first one?
After I sign a document via a modal, a popup should display to send an email.

Yet I cant figure out how to do this, this is as far as I get, the second modal opens, but closes a second after.

SignAction::make('signTeamLead')
    ->arguments([
        'prefix' => 'team_leader',
    ])
    ->label(__('resources/startup-sheets.sign_team_lead'))
    ->after(function ($livewire) {

        $this->unmountAction();

        $this->mountAction('sendStartupSheetMail');

    }),
Was this page helpful?