© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Bagus A

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(),
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
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

custom modal content
FilamentFFilament / ❓┊help
9mo ago
Wizard modal with custom modal content
FilamentFFilament / ❓┊help
3y ago
modal, open another modal or change the content in custom modal content
FilamentFFilament / ❓┊help
3y ago
Action in custom modal content: Update modal content after action performed?
FilamentFFilament / ❓┊help
2y ago