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
In the controller how can you manually add errors to inputs?
I need to programmatically and an error to the form and stop it from continuing to the next step. Without the flow I know I can just do something like:
$form->get('name')->addError(new FormError('You have an error here!'));
if( $form->isSubmitted() && $form->isValid())
however there doesn't seem to be a way to do this with the flow.
The text was updated successfully, but these errors were encountered:
In the controller how can you manually add errors to inputs?
I need to programmatically and an error to the form and stop it from continuing to the next step. Without the flow I know I can just do something like:
however there doesn't seem to be a way to do this with the flow.
The text was updated successfully, but these errors were encountered: