© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
1 reply
Cushty

Modal preview of form coming form blade view

Hi I am trying to work out the best way of getting form data that is not saved in to my preview modal, at the moment I have a modal with a blade view, pulling in data that is saved in the db and it is working well, but im not sure the best way to pull in data to the modal on new additions to the form that are not yet saved?

In my edit application resource I have

Action::make('preview')
                ->label('Preview Profile')
                ->icon('heroicon-o-eye')
                ->modalContent(function () {
                    $record = $this->getRecord();
                    $formData = collect($this->data)->except(['status'])->toArray();
                    $record->fill($formData);

                    return view('application.preview', [
                        'application' => $record,
                        'isPreview' => true
                    ]);
                })
                ->modalWidth('7xl')
Action::make('preview')
                ->label('Preview Profile')
                ->icon('heroicon-o-eye')
                ->modalContent(function () {
                    $record = $this->getRecord();
                    $formData = collect($this->data)->except(['status'])->toArray();
                    $record->fill($formData);

                    return view('application.preview', [
                        'application' => $record,
                        'isPreview' => true
                    ]);
                })
                ->modalWidth('7xl')


the rich editor changes are showing in preview but normal fields or selects are not, what is the best way to achieve a preview with changes that are not yet saves in fIlament as I may be going the wrong route, thanks
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 use viewData value at ViewField in the blade view
FilamentFFilament / ❓┊help
3y ago
Action inside Resource ViewAction blade view
FilamentFFilament / ❓┊help
3y ago
Customise the modal form view
FilamentFFilament / ❓┊help
2y ago
Custom Modal View for ViewAction
FilamentFFilament / ❓┊help
3y ago