© 2026 Hedgehog Software, LLC

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

Modal form for url action on panel

Is there any way I could open a modal before opening a url from an action? I want to open a custom form, and then use data from the form as a parameter on the url. This doesn't work at all, the url is simply opened. I would like to replace "cash" in the url with the value selected in the form.
Action::make('tarriff_schedules')
                ->label('Tarriff Schedules')
                ->icon('heroicon-s-clipboard-list')
                ->form([
                    Select::make('Schedule')
                        ->options(function () {
                            $options = ['Cash' => 'cash'];
                            $schedules = config('labman.tarriff_schedules');
                            foreach ($schedules as $schedule) {
                                $options[$schedule] = $schedule;
                            }
                            return $options;
                        })
                ])
                ->url(function () {
                    return route('tarriff-schedules', 'cash');
                },true)
Action::make('tarriff_schedules')
                ->label('Tarriff Schedules')
                ->icon('heroicon-s-clipboard-list')
                ->form([
                    Select::make('Schedule')
                        ->options(function () {
                            $options = ['Cash' => 'cash'];
                            $schedules = config('labman.tarriff_schedules');
                            foreach ($schedules as $schedule) {
                                $options[$schedule] = $schedule;
                            }
                            return $options;
                        })
                ])
                ->url(function () {
                    return route('tarriff-schedules', 'cash');
                },true)
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

Form Builder: Modal-Form Action
FilamentFFilament / ❓┊help
3y ago
Modal Action Hit Url
FilamentFFilament / ❓┊help
3y ago
$set on modal form hint action
FilamentFFilament / ❓┊help
13mo ago