How to Use Custom Modal Content

Here I want to create an action button with custom confirmation message.

Custom message is loaded, but the default description is not replaced.

Forms\Components\Actions\Action::make('change_status')->label('Update Status')
    ->icon('heroicon-o-arrow-uturn-up')
    ->color('success')
    ->modalContent(fn (Order $record): View => view(
        'vendor.filament.pages.actions.confirmation',
        ['record' => $record],
    ))
    ->requiresConfirmation(),
Screenshot_2023-11-23_at_15.14.56.png
Was this page helpful?