Wizard submitAction button doesn't do validation or submission

Using a wizard in a Livewire component. I can put a wire:submit on the form tag in the blade template for the component and that works as expected. But that means I have to have a separate set of validation for just the last step, right? And the form state ends up looking very different if I do $this->form->getState() in the Livewire component than it does between steps in the Form component. So I guess the question is: Is this the expected behavior or am I doing something wrong?
1 Reply
Luc Van Keer
Luc Van Keer9mo ago
call $this->form->getState(); in the submit method and the last step will be validated
Want results from more Discord servers?
Add your server