How to trigger form wizard next step via javascript?

On step 3 of my form wizard. I have a facial recognition component. What I plan to do is once the user face is verified. I trigger next step of the form wizard via javascript on the onSuccess() hook of the facial verification sdk. But I'm not quite sure how to trigger filament form wizard next step via javascript. So hope anyone here knows. Thank you
2 Replies
Auth1Specialist
I do something like that in the BE, so you should be able to replicate this in the FE as well:
$this->dispatch('next-wizard-step', statePath: $this->form->getStatePath());
$this->dispatch('next-wizard-step', statePath: $this->form->getStatePath());
Auth1Specialist
Looking at the sourcecode I find this.
No description

Did you find this page helpful?