© 2026 Hedgehog Software, LLC

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

How to Open Another Modal from Action Modal?

Hello!
So I want to build an import excel with Actions. After the user successfully imported the file, I want to automatically close the import modal and open another modal to display the result of the import. How to do that?

If it is not possible, how to put some text under the form to display the result?

Here is my current code of the import action.
Actions\Action::make('import')
  ->icon('heroicon-m-arrow-up-tray')
  ->label('Import')
  ->color('info')
  ->form([
    Forms\Components\FileUpload::make('file')
      ->label('Excel file')
      // ->...
      ->required()
  ])
  ->action(function ($data) {
    // Do the import thing

    // Close this modal and open another modal for displaying the import result
  })
Actions\Action::make('import')
  ->icon('heroicon-m-arrow-up-tray')
  ->label('Import')
  ->color('info')
  ->form([
    Forms\Components\FileUpload::make('file')
      ->label('Excel file')
      // ->...
      ->required()
  ])
  ->action(function ($data) {
    // Do the import thing

    // Close this modal and open another modal for displaying the import result
  })
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 from another modal
FilamentFFilament / ❓┊help
3y ago
Open an action from another action
FilamentFFilament / ❓┊help
3y ago
Open action modal
FilamentFFilament / ❓┊help
3y ago
Open action modals inside a modal
FilamentFFilament / ❓┊help
3y ago