The input of the last form step is missing in the $storage property in the submitForm method.
For example, the submodule multistep_form_api_example defines three form steps with the elements name, address and city. Their input is collected in the property $storage of MyMultistepForm. When I output $storage in the method submitForm, I get only the input of the first two form steps:
{
"name": "asdf",
"address": "asdf"
}
However, when I do not immediately submit, but navigate back from step 3 to step 2, then again to 3, and then submit, everything will be fine.
The problem does not only occur in the `multistep_form_api_example`. I discovered it when creating my own implementation of `FormMultistepBase`.
Comments
Comment #2
philippze commentedThe problem goes away when I call
in `submitForm`.