F
Filament2mo ago
Zod

Add action to a wizard step

Is it possible to add an action or any type of code when a certain step in a wizard is clicked/loaded?
5 Replies
toeknee
toeknee2mo ago
with next? You can use the afterStateValidated(function() {run code})
Zod
ZodOP2mo ago
Thanks! But I also want it to trigger when the validation error opens the step back up. Any ideas?
josef
josef2mo ago
maybe you can use onValidationError()?
Auth1Specialist
Auth1Specialist2mo ago
This might work: - You could create your own custom field -> Load a custom livewire component in it -> Set it to load lazy -> Use it in your wizard as a form -> Run code in the mount() method?
Zod
ZodOP2mo ago
Awesome, thanks!

Did you find this page helpful?