Implementing fieldsets in Symfony2 Forms

Adam Quaile

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

Adam Quaile

Written by

PHP developer. http://t.co/olQvZ91Lo4

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade