Contao extension for using sub forms.
This extension provides an easy way to include fields of subforms into a main form. So it is easy to use some parts of a form again or structure huge forms with many field much better.
Important: Support of the efg is not tested and won't be offically supported.
The extension requires at least Contao 3.3 and PHP 5.4
This extension can be installed using composer:
$ php composer.phar require netzmacht/contao-subforms:~1.0
Create the subforms you want to use in the main form. Please be aware that the field names are not prefixed. So they have to be unique in all subforms together!
Create the main form and a new form element: subform
If you use conao-leads the settings of the subform are ignored. You have to define them in the subform form element. Please be aware that if you use a master form which has to include all form elements which are used in the subforms.
If you use the multi page form extension you should create the page breaks in the main form. Otherwise it's not guaranteed if it works.