© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
11 replies
QCTFW

Confirmation Alert Before Creating a Record

Hello, I want to add a confirmation alert before creating a record in
Order
Order
model.
I already tried this code in
CreateOrder
CreateOrder
class but still does not working, the form got submitted without a confirmation alert. Do I missed something? How to solve this?

<?php

namespace App\Filament\Resources\OrderResource\Pages;

use App\Filament\Resources\OrderResource;
use Filament\Actions\Action;
use Filament\Resources\Pages\CreateRecord;

class CreateOrder extends CreateRecord
{
    protected static string $resource = OrderResource::class;

    protected function getCreateFormAction(): Action
    {
        return parent::getCreateFormAction()
            ->requiresConfirmation();
    }
}
<?php

namespace App\Filament\Resources\OrderResource\Pages;

use App\Filament\Resources\OrderResource;
use Filament\Actions\Action;
use Filament\Resources\Pages\CreateRecord;

class CreateOrder extends CreateRecord
{
    protected static string $resource = OrderResource::class;

    protected function getCreateFormAction(): Action
    {
        return parent::getCreateFormAction()
            ->requiresConfirmation();
    }
}
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

Open Modal after/before Creating record
FilamentFFilament / ❓┊help
9mo ago
Open Confirmation Modal before allowing user to Create a new record
FilamentFFilament / ❓┊help
3y ago
Confirmation before navigating away
FilamentFFilament / ❓┊help
2y ago
Confirmation modal before action.
FilamentFFilament / ❓┊help
3y ago