In my application I have the requirement to modify a submitted and validated form value.
The use case is a form with an address that is validated and possibly corrected by an external web service. I need to update the address in the form after the correction and inform the user about that in there newly rendered form. The user should not get a validation error after correction.
Symfony's form component does not allow to modify an already submitted form value and throws an AlreadySubmittedException exception.
One solution is to pass the corrected address to the template and add logic to it. But this is the wrong way in my opinion.
Is there another solution?
Thanks in advance, Jens