One suggestion is to define all the input fields that you want to provide using the zend form.
But when the form is displayed, you can hide certain fields and make them visible by pressing + .
I think this is the easiest approach, because to add decorators and things you will need to change the php files on the client side, and this is not possible.
Another suggestion, you can define several forms. Clicking on + redirects the user to another form with an added field.
source share