I\'m working on a project using Zend Framework.
I\'m creating a form on which users can add a set of elements by pressing a + sign.
Zend framework uses subfo
One suggestion would be to define all input fields that you want to provide using zend form.
But when the form is displayed you could hide certain fields and make them visible by clicking on +
.
I think this is the most simple approach because for adding decorators and stuff you would need to change php files on client side and this is not possible.
Another suggestion, you could define several forms. Clicking on +
redirectes the user to another form with an added field.