CakePHP-Wizard icon indicating copy to clipboard operation
CakePHP-Wizard copied to clipboard

Save current step

Open mesiarm opened this issue 7 years ago • 4 comments

Would it be possible to add functionality to be able to save step data to session before submitting? It would be useful when user is filling second step, but he made a mistake in first step so he must return to first step before finishing second step and progress in second step won´t be saved. I´ve seen in working in many pages(I don´t know how it works under the hood), but Wizard doesn´t support it.

mesiarm avatar Sep 27 '18 11:09 mesiarm

I honestly haven't touched this code in YEARS. Have you tried putting validation into the last step so that the wizard considers the entire form incomplete at the end? I'd have to see what you're doing now that's causing issues and where you're surfacing validation errors, and honestly I don't work in PHP anymore so I'm mostly speculating.

ProLoser avatar Sep 27 '18 18:09 ProLoser

I ´m not telling about mistake which needs to be validated but something like for example when client incorrectly chooses gender by mistake in first step and then in second step before finishing there are some fields, which asks something in relation with given gender. And he need to return to first step and change gender to correct one, but current step isn´t saved. Or maybe when he refreshes page by mistake. I´ve noticed you aren´t doing on it now, but (I don´t know why) Github doesn´t provide "Issues" option in forked repositories.

mesiarm avatar Sep 27 '18 20:09 mesiarm

Pull requests accepted, the data DOES get stored to the session to some degree.

ProLoser avatar Sep 27 '18 22:09 ProLoser

Could you improve documentation to understand what is usage and meaning of Draft in code? Maybe I can use it to solve my problem, but I don´t know how it works.

mesiarm avatar Nov 16 '18 11:11 mesiarm