Support WireModel Your support ensures we remain accessible to all and continue spreading innovative ideas globally.

Support us

Add a Confirmation Modal Before Creating a Record

Filament
Add a Confirmation Modal Before Creating a Record

Details

Published

June 17, 2025

Last Update

June 17, 2025

Built with

Filament

Version

3.x

License

free

View on GitHub

Discussion

If you have any questions or suggestions about this example, feel free to open a discussion on GitHub

Sometimes you want to double-check with users before they create a new record—especially when the action has real consequences. Adding a confirmation modal to the Create form can help prevent mistakes and ensure intent.

The trick

Here's how to show a confirmation modal before saving a record in a Filament CreatePage — no extra packages, just native Filament.

This replaces the default submit button with a custom action that includes a confirmation step. When users click "Create" a modal pops up asking for confirmation. Only then is the record saved.

Conclusion

Use this pattern to keep users informed and intentional. It's especially helpful when creating critical or irreversible data.

©WireModel2025, All rights reserved.