craue / CraueFormFlowBundle

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

Saving Data while using linkeable steps #286

Open isabelle112 opened 7 years ago

isabelle112 commented 7 years ago

Hello Craue,

I am using the FormFlowBundle in my project. I have 5 steps and I want to make these linkable AND save the data. I've enabled the dynamic step navigation and now it is possible to fill in the form and then jump back from step 5 to 2. But if the user changes anything in step 2 and jumps back directly to step 5 (or step 3,4 or 1) then the changed data isn't saved. The user has to click on the submit button to save the data. Is there any way to enable these linkable steps and save the changed data when jumping backwards or forwards in the form?

Example:

Step 1: Personal details, Step 2: banking information, Step 3: Summary. User fills in the personal details, clicks on the submit button, fills in step 2, clicks on the submit button and gets to step 3. On step 3 he recognizes that he has entered '11' in house number on step 1. So he clicks on step 1, changes the house number from 11 to 12 and clicks on step 3. In the summary on step 3 is still the number 11 shown.

I hope you understand the issue. It would be great if there is or will be a solution for that problem. I think other users would use that feature as well.

Thank you very much. Isabelle

craue commented 7 years ago

Following a link and submitting a form are completely different things. From what you describe, using JavaScript to split a large form into several smaller sections seems to be a cleaner approach. Then there would be no need for a flow.