© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
SiGuy

Success Notification for CreateOptionAction with injected created Record

Hi!

I have a Select with a CreateOption Action. I would like to show a Success Notification after Record Creation, but I have more elaborate Notifications throughout my App, that require me to either inject the created Record instance into the after() method of the action or some way to get the $createdOptionKey that is accessable in the default action.

I don't want to overwrite the whole default action just for the benefit of getting a "better" notification - is there a way to get the model instance or key of the created record in the after() callback?

Thank you!
image.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

Injected $record the same for each recordActions Action
FilamentFFilament / ❓┊help
4w ago
How can I get the record created from a createOptionAction?
FilamentFFilament / ❓┊help
2y ago
createOptionAction() and returning new record id
FilamentFFilament / ❓┊help
3y ago
Use ID on newly created Model from ->createOptionAction
FilamentFFilament / ❓┊help
15mo ago