© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Benyallan

Create notification in select modal

Good afternoon, a question, I am allowing the user to create a record in the bank that automatically appears as an option in my select, the code works perfectly, but it does not display a notification that it was created successfully.
How can I launch this notification when saving the modal?

The code that creates the modal that saves my record is in the createOptionForm() function, but it does not have a saved() method

Forms\Components\Select::make('modelo_id')
->relationship(
name: 'modelo',
titleAttribute: 'nome',
modifyQueryUsing: fn (Builder $query, Get $get) =>
$query->where('marca_id', $get('marca_id')),
)
->required()
->createOptionForm([
Forms\Components\TextInput::make('nome')
->required()
->maxLength(255),
Forms\Components\Hidden::make('marca_id')
->afterStateHydrated(function (Component $component, Livewire $livewire) {
$component->state($livewire->data['marca_id']);
}),
]),
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

select field relationship create modal
FilamentFFilament / ❓┊help
3y ago
modal notification title
FilamentFFilament / ❓┊help
3y ago
Select or Create in attach modal freezes (no scroll)
FilamentFFilament / ❓┊help
2y ago
Select field create new option in modal but using url of existing resource/create - Action in modal
FilamentFFilament / ❓┊help
3y ago