B
B
boozzd2015-02-07 18:05:21
Zend Framework
boozzd, 2015-02-07 18:05:21

How to properly make a dynamic shape using zf2?

You need to create a complex dynamic form on ZF2.
The form will look something like this:
499c95abf5f0425fbac25319decd20ed.png
it will expand downwards.
The user must have a button to add a row, this can be either a section (in bold in the figure, for example, Ruby developers ), or a row with data. In the data line there will be inputs, selects. You also need validation.
Can this be done with zend form?
Please tell me which way to dig and what to look for. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cat Anton, 2015-02-26
@27cm

It can be done.
Zend Framework 2 has a Collection form element . In your case, it turns out that the form will consist of buttons and a collection (sections) of collections (strings) of Fieldsets, including inputs, selects.
Documentation example:
framework.zend.com/manual/current/en/modules/zend....

A
Anton Shamanov, 2015-02-09
@SilenceOfWinter

Explain clearly the complexity and dynamism of this form of yours?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question