© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
4 replies
TranceCode

How can show a modal message ?

Friends, how can I show a message in Modal here instead of a Notification?
Forms\Components\TextInput::make('email')
  ->email()
  ->required()
  ->unique(Guest::class, 'email', ignoreRecord: true)
  ->reactive()
  ->afterStateUpdated(function ($state, callable $set) {
    $guest = Guest::where('email', $state)->first();
    if($guest) {
      $set('name', $guest->name);
      $set('telephone', $guest->telephone);
      
      // Show Modal here
      \Filament\Notifications\Notification::make()
        ->title('¡Cuenta existente!')
        ->body('Esta cuenta ya está registrada en nuestro sistema.')
        ->seconds(5)
        ->danger()
        ->send();
    }
  })
->columnSpan(1),
Forms\Components\TextInput::make('email')
  ->email()
  ->required()
  ->unique(Guest::class, 'email', ignoreRecord: true)
  ->reactive()
  ->afterStateUpdated(function ($state, callable $set) {
    $guest = Guest::where('email', $state)->first();
    if($guest) {
      $set('name', $guest->name);
      $set('telephone', $guest->telephone);
      
      // Show Modal here
      \Filament\Notifications\Notification::make()
        ->title('¡Cuenta existente!')
        ->body('Esta cuenta ya está registrada en nuestro sistema.')
        ->seconds(5)
        ->danger()
        ->send();
    }
  })
->columnSpan(1),


My idea is to focus all the user's attention on the message that appears in the modal, i try with actions modal but is not working here!
The message and Modal must be displayed in the context of creating a record
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

How can i show a modal from a notification or dispatched event
FilamentFFilament / ❓┊help
3y ago
How can I make my form action show a confirmation modal?
FilamentFFilament / ❓┊help
2y ago
How to show a verification modal before save
FilamentFFilament / ❓┊help
3y ago
How to show error message in modal for custom Action::make()
FilamentFFilament / ❓┊help
3y ago