Implementing fieldsets in Symfony2 Forms

Adam Quaile
1 min readAug 1, 2017

--

This article was originally published at http://adamquaile.com/fieldset-in-symfony-forms on 17th May 2014, but has since been migrated to Medium.

Update: There seems to be an issue where the validation messages don’t appear directly on the relevant fields, but at the top of the form.

Currently, the Symfony Form component has no support for the HTML <fieldset>. There are some solutions for this floating around on the internet^1.

I have created a bundle to leverage this functionality quickly. You can find it on github here

--

--