You need to declare your theme before displaying your form.
You must try:
{% form_theme form 'ThemeX.html.twig' %} {{ form(formX) }} {% form_theme form 'ThemeY.html.twig' %} {{ form(formY) }}
If this does not work (that is, declaring a topic in the second form does not overwrite the first), simply use a separate template for your second form and insert it into the parent template using include.
Try the [ http://symfony.com/doc/current/cookbook/form/form_customization.html#child-forms 022(this page) symfony document for more information.
source share