© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
20 replies
ddoddsr

Have to refresh custom page for action's model to 'click' after running other action.

I have a custom page 'Tools' that prints a PDF which works fine. It uses a model to select from a list and then the user presses Submit .
But if I first run another Action that displays data on the page the model's Submit button will not 'click' until after page refresh.
The page is a simple blade directive @if(ownName) that has a table inside.
The action populates the $this->ownName.

This modal becomes un-clickable

Action::make('genSchedPdf')
            ->label('Generate Schedule PDF')
            ->action('genSchedPdf')
            ->form([
                Select::make('location')
                    ->options(Location::query()->pluck('name', 'id'))
                    ->required()
                    ->default(1)
                    ->disablePlaceholderSelection(),
  ]),
Action::make('genSchedPdf')
            ->label('Generate Schedule PDF')
            ->action('genSchedPdf')
            ->form([
                Select::make('location')
                    ->options(Location::query()->pluck('name', 'id'))
                    ->required()
                    ->default(1)
                    ->disablePlaceholderSelection(),
  ]),

public function genSchedPdf($data)
    {
        
        $filePath = 'storage/schedule.pdf';
        $pdf = new SchedPdfController;
        $pdf->generatePdf($filePath, $data['location']);

        Notification::make() 
            ->title('Generation complete.')
            ->success()
            ->send(); 
        
        return response()->download($filePath);
    }
public function genSchedPdf($data)
    {
        
        $filePath = 'storage/schedule.pdf';
        $pdf = new SchedPdfController;
        $pdf->generatePdf($filePath, $data['location']);

        Notification::make() 
            ->title('Generation complete.')
            ->success()
            ->send(); 
        
        return response()->download($filePath);
    }
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 to refresh EditRecord Page after submit a Action::model component
FilamentFFilament / ❓┊help
3y ago
Refresh custom column after update to model
FilamentFFilament / ❓┊help
3y ago
Page refresh action success
FilamentFFilament / ❓┊help
3y ago
Refresh my form after custom "Cancel" action
FilamentFFilament / ❓┊help
2y ago