Skip to main content

Form & Field Attributes

It's possible to add specific attributes to each form and each underlying field.

Change Attribute Selection

By default, attributes are available as symfony parameters, so it's easy to override them:

parameters:
form_builder_form_attributes:
- ['my-data-attribute','My Data Attribute']
form_builder_field_attributes: '%form_builder_form_attributes%'