© 2026 Hedgehog Software, LLC

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

open modal from another modal

I follow the steps given but I don't really know how to follow... from a RelationManager where and how I attach the modal view?
https://filamentphp.com/docs/2.x/admin/pages/actions#getting-started

On my RelationTable:
                ->extraModalActions([
                    \Filament\Tables\Actions\Modal\Actions\Action::make('preview')
                        ->button()
                        ->label(__('filament-export::export_action.preview_action_label'))
                        ->color('secondary')
                        ->icon(config('filament-export.preview_icon'))
                        ->action('openPreviewModal'),
                ])
                ->slideOver()
                ->extraModalActions([
                    \Filament\Tables\Actions\Modal\Actions\Action::make('preview')
                        ->button()
                        ->label(__('filament-export::export_action.preview_action_label'))
                        ->color('secondary')
                        ->icon(config('filament-export.preview_icon'))
                        ->action('openPreviewModal'),
                ])
                ->slideOver()


On my RelationManager:
    public function openPreviewModal(): void
    {
        $recordId = $this->mountedTableActionRecord;
        $emailExtraInfo = $this->mountedTableActionData['email_extra_info'];
        $this->dispatchBrowserEvent('open-preview-modal', ['id' =>$recordId,'field' => $emailExtraInfo]);
    }
    public function openPreviewModal(): void
    {
        $recordId = $this->mountedTableActionRecord;
        $emailExtraInfo = $this->mountedTableActionData['email_extra_info'];
        $this->dispatchBrowserEvent('open-preview-modal', ['id' =>$recordId,'field' => $emailExtraInfo]);
    }
Actions - Admin Panel - Filament
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 another form modal from a form modal
FilamentFFilament / ❓┊help
10mo ago
How to Open Another Modal from Action Modal?
FilamentFFilament / ❓┊help
3y ago
Open modal with form from another form.
FilamentFFilament / ❓┊help
3y ago
Modal hidden when i open another nested modal
FilamentFFilament / ❓┊help
14mo ago