You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've already solved this but wanted to point out to anyone using Hotwired/Turbo that step rendering is broken unless you send a 422 status. You can do something like this:
`if ($this->flow->getStepCount() === $this->flow->getCurrentStepNumber() && $form->isSubmitted() && $form->isValid())
{
$statusCode = 200;
// The last step has been executed so redirect or whatever you want here
}
else
{
$statusCode = 422;
}
I've already solved this but wanted to point out to anyone using Hotwired/Turbo that step rendering is broken unless you send a 422 status. You can do something like this:
`if ($this->flow->getStepCount() === $this->flow->getCurrentStepNumber() && $form->isSubmitted() && $form->isValid())
{
$statusCode = 200;
// The last step has been executed so redirect or whatever you want here
}
else
{
$statusCode = 422;
}
return $this->renderForm('your template', [
'form' => $form,
'flow' => $this->flow,
], new Response(null, $statusCode));`
The text was updated successfully, but these errors were encountered: