how to split long symfony form in multiple pages?

后端 未结 3 1244
南旧
南旧 2020-12-15 09:47

I want to create a form for an entity which has a many attributes. To ensure the ease of data entry, I want to split that form in multiple pages (for example 2 or 3 pages).

3条回答
  •  北海茫月
    2020-12-15 10:14

    You probably should use CraueFormFlowBundle. It provides facilities for building multi-step forms.

    You can create one form type for an entire flow, or one form type per step.

    It's very easy to setup. Everything is explained here.

提交回复
热议问题