craue / CraueFormFlowBundle

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

Reset steps when something changed in previous step #364

Closed lukaszkulinski closed 3 years ago

lukaszkulinski commented 3 years ago

Hello, I have a 7 step form. I need to reset all next steps if user go back and change something. For example: user go to step 6, then back to step 2 and change one field so I need to reset all steps after step 2 and recreate them again.

craue commented 3 years ago

Use a PostBindFlowEvent to call $this->invalidateStepData($this->getCurrentStepNumber() + 1).