Wizard: save data on each step #11609
-
PackageForm builder Package Versionv3.0.0 How can we help you?Hi, I want to save all data from each step when on create and update resource form. How could I do that? Do I need this package for my needs: https://github.com/GuavaCZ/filament-drafts? Thanks for your help, |
Beta Was this translation helpful? Give feedback.
Answered by
leandrocfe
Feb 28, 2024
Replies: 1 comment 1 reply
-
You can use Step::make('Step1')
->schema([
...
])
->afterValidation(function (Component $livewire) {
$data = $livewire->form->getState();
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sambeauprak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
afterValidation
and get the form state from each step