The HTML5 range form field was missing from the list of built-in Symfony Form types. This new type is rendered as a slider in browsers that support HTML5 form controls. Use the min and max attributes to constraint the selectable values:

Forms that contain collections allow to customize the HTML used to add new items ( prototype option) and the name of the placeholder used in that template ( prototype_name option). Symfony 2.8 allows to also define the default data of each new collection row thanks to the prototype_data option:

Sometimes it's useful to display an empty list of entries for entity form types. In Symfony 2.7 you needed to pass an empty list to its choices option. In Symfony 2.8, you can return null in the query_builder closure to display an empty list of entries:

Foundation 5 form theme¶

In Symfony 2.6 we introduced a form theme for applications which use the ubiquitous Bootstrap CSS framework. In Symfony 2.8 we expanded our CSS framework support by adding a new form theme for Foundation 5 CSS framework.

Use the form_themes configuration option to apply this theme to all your forms: