F
Filament5d 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
toeknee5d ago
with next? You can use the afterStateValidated(function() {run code})
Zod
ZodOP4d ago
Thanks! But I also want it to trigger when the validation error opens the step back up. Any ideas?
josef
josef4d ago
maybe you can use onValidationError()?
Auth1Specialist
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
ZodOP4d ago
Awesome, thanks!
Want results from more Discord servers?
Add your server