© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
ChandraAT

Rerender Header Actions Button With Value From Query String

what I am trying to do:

I try to keep the step of wizard from view page and when user click the edit action in header the user will automatically in same wizard step

What I did:
1. Add this method to the wizard ->persistStepInQueryString()
https://filamentphp.com/docs/3.x/forms/layout/wizard#persisting-the-current-step-in-the-urls-query-string
2. Pass the value of the step into url in EditButton

My Issue:
The url of the button seems not updated when I change the steps in wizard although the queryString is updated

Code:
Wizard::make(ProjectForms::getSteps())
                ->columnSpanFull()
                ->skippable(true)
                ->persistStepInQueryString(),
Wizard::make(ProjectForms::getSteps())
                ->columnSpanFull()
                ->skippable(true)
                ->persistStepInQueryString(),


View Page
    public string $step = 'step-1';

    public $queryString = [
        'activeTab',
        'step'
    ];

    protected function getHeaderActions(): array
    {
        return [
            Actions\EditAction::make()
                ->url(fn ($record) => ProjectResource::getUrl('edit', [
                    'record' => $record->id,
                    'step' => $this->step;
                ])),
            Actions\DeleteAction::make(),
            CommentsAction::make(),
        ];
    }
    public string $step = 'step-1';

    public $queryString = [
        'activeTab',
        'step'
    ];

    protected function getHeaderActions(): array
    {
        return [
            Actions\EditAction::make()
                ->url(fn ($record) => ProjectResource::getUrl('edit', [
                    'record' => $record->id,
                    'step' => $this->step;
                ])),
            Actions\DeleteAction::make(),
            CommentsAction::make(),
        ];
    }
Wizard - Form Builder - 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

Rerender header actions of a resource page
FilamentFFilament / ❓┊help
6mo ago
Swap Header Actions with Form Actions
FilamentFFilament / ❓┊help
2y ago
Actions Button
FilamentFFilament / ❓┊help
2y ago
Populate form from query string
FilamentFFilament / ❓┊help
12mo ago