Cover of the book Symfony 5: The Fast Track

Symfony 5: The Fast Track is the best book to learn modern Symfony development, from zero to production. +300 pages in full color showing how to combine Symfony with Docker, APIs, queues & async tasks, Webpack, Single-Page Applications, etc.

Buy printed version
WARNING: You are browsing the documentation for Symfony 2.0 which is not maintained anymore. Consider upgrading your projects to Symfony 5.1.

Form Types Reference

Form Types Reference

A form is composed of fields, each of which are built with the help of a field type (e.g. a text type, choice type, etc). Symfony2 comes standard with a large list of field types that can be used in your application.

Supported Field Types

The following field types are natively available in Symfony2:

Date and Time Fields

Other Fields

Field Groups

Hidden Fields

Base Fields

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.