Wizard Form disable next/previous
Is there a way to programatically stop going to the next or previous step based on some conditions?
i know you can use things like:
But that only applies to the visual change. Youre still able to proceed.
Solution:Jump to solution
documentation seenms to have info on it actually
https://filamentphp.com/docs/3.x/forms/layout/wizard#preventing-the-next-step-from-being-loaded...
4 Replies
Should be straightforward using step life cycle hooks
See under
https://filamentphp.com/docs/3.x/forms/layout/wizard#step-lifecycle-hooks
Wizard steps include validation, and you can proceed to the next step if the validation passes. Maybe you could use validation to prevent moving to the next step..
Solution
documentation seenms to have info on it actually
https://filamentphp.com/docs/3.x/forms/layout/wizard#preventing-the-next-step-from-being-loaded
Thanks a lot!
I never saw that in the documentation...