Sonataadminbundle: How to make multi step form

Created on 17 Mar 2016  路  13Comments  路  Source: sonata-project/SonataAdminBundle

Hi is there a way for making multistep form with sonata admin. Using other bundle?
Thanks

Most helpful comment

proxy duckduckgo com

All 13 comments

Would you be able to persist the object after the form step? If yes, I think you can do that by injecting a stepNumber shown in your url inside the admin, and then use it in the form mapper to change the displayed fields. So step one would call createAction, and following steps would call editAction

Thanks Gregoire, i will try this :)

Can you close this issue?

Hi,I don't have finish my test i will close it when i've finish them !! :)

@locs31 ping

I haven't finish yet! Sorry for the late!!

Hi, we try to keep Github issues for bug reports and feature requests only. If you have a question, please ask it on Stack Overflow.

@greg0ire Please provide me a full example working code about what you've said :
https://github.com/sonata-project/SonataAdminBundle/issues/3665#issuecomment-197840200
"Would you be able to persist the object after the form step? If yes, I think you can do that by injecting a stepNumber show in your url inside the admin, and then use it in the form mapper to change the displayed fields. So step one would call createAction, and following steps would call editAction"

proxy duckduckgo com

Please next time @greg0ire. I've to build an application for managing an insurant and his beneficiaries for company traineeships.
So I've to build a form with steps by steps validation.
Thanks in advance

You can use https://github.com/craue/CraueFormFlowBundle and a custom symfony controller to do so, but don鈥檛 know how to do it with sonata

Thanks you @OskarStark , I'll try it but If i could find a sonata native way, it'll be better for me.

Then let us know 馃槈

Was this page helpful?
0 / 5 - 0 ratings

Related issues

peter-gribanov picture peter-gribanov  路  3Comments

Max93 picture Max93  路  3Comments

jenyak picture jenyak  路  3Comments

parijathakumar picture parijathakumar  路  3Comments

core23 picture core23  路  4Comments