craue / CraueFormFlowBundle

Multi-step forms for your Symfony project.
MIT License
736 stars 118 forks source link

Is it possible to display validation error messages from previous steps? #343

Closed benr77 closed 4 years ago

benr77 commented 4 years ago

If I encounter a validation error from a previous step, I see an error message such as:

"The form for step 2 is invalid. Please go back and try to submit it again."

This is of course triggered by an actual validation constraint on a field in the previous step.

Is is possible to access the error message of the specific constraint itself, rather than the generic message saying there is some unspecified error in the previous step?

benr77 commented 4 years ago

Apologies I've since realised that my validation groups were not set up correctly, so no validation was happening at all.

This of course was then the reason that no specific validation errors were being shown.