© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
John

Form Wizard save on every next step

I want to save the current step (or the complete form for that matter) every "Next step".

I've created a
CustomWizard
CustomWizard
, extending the base
Wizard
Wizard
.

In my version of this part:
https://github.com/filamentphp/forms/blob/2.x/src/Components/Wizard.php#L45

I added this:
$component->getRecord()->update($component->getState());
$component->getRecord()->update($component->getState());

That saves the complete record to the database. Which is cool. But...

When I add in a select that's just for filtering another select,
$component->getState()
$component->getState()
misses the
->dehydrated(false)
->dehydrated(false)
on the "dummy" select.

I've noticed that the component uses
\Filament\Forms\Components\Concerns\HasState::getState
\Filament\Forms\Components\Concerns\HasState::getState
, which doesn't care about dehydration. And
EditRecord
EditRecord
uses
\Filament\Forms\Concerns\HasState::getState
\Filament\Forms\Concerns\HasState::getState
, which does.

How can I save the Wizard Step form, or the complete Wizard, taking
->dehydrated()
->dehydrated()
into account?
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 Wizard save to db on each step
FilamentFFilament / ❓┊help
3y ago
How can save each step of a Wizard form when on next button ?
FilamentFFilament / ❓┊help
15mo ago
Trigger next wizard step
FilamentFFilament / ❓┊help
6mo ago
Wizard form submit on next?
FilamentFFilament / ❓┊help
3y ago