F
Filament3mo 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
toeknee3mo ago
with next? You can use the afterStateValidated(function() {run code})
Zod
ZodOP3mo ago
Thanks! But I also want it to trigger when the validation error opens the step back up. Any ideas?
josef
josef3mo ago
maybe you can use onValidationError()?
Auth1Specialist
Auth1Specialist3mo 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
ZodOP3mo ago
Awesome, thanks!

Did you find this page helpful?