Top "Symfony-forms" questions

The Symfony form component is a standalone library that can be used outside of Symfony projects.

Symfony2 -> Twig -> Form -> Field -> Set rendered = true

i have a simple problem. I have a form with a field for example: $builder ->add('x') -&…

symfony twig symfony-forms symfony-2.2 symfony-2.3
Set default values using form classes in Symfony 2

Is there an easy way to set a default value for text form field?

php symfony symfony-forms symfony-2.3
Using entity field type in symfony2.1 form

Using Symfony 2.1.3-dev and Doctrine 2.3 I am attempting to build a form which provide multiple options for a user to …

symfony symfony-forms symfony-2.1
Symfony2: Could not load type "MyType"

I am trying to create a new field type and add it to a form class in Symfony 2. I have …

symfony symfony-forms
Get translated country name from a 2 digit country code in Symfony2/Twig?

I'm using the Symfony2 country Field Type, it works well and country names are translated. I am storing the two-digit …

symfony twig symfony-forms
Get value of a field not declared in FormType

I have a form declared in nameType.php and the view render all field but I want add another field …

symfony symfony-forms
How do I add an unbound field to a form in Symfony which is otherwise bound to an entity?

Maybe I'm missing the obvious but how do I (or can I) add an extra "unbound" field to a Symfony …

symfony symfony-forms symfony-2.1
Customize widget's ID attribute in Twig

Is it possible to customize HTML 'id' attribute in Twig when rendering a widget with {{ form_widget(form.NAME_OF_…

symfony symfony-forms
Adding a field specific error from the controller in symfony2

I have some complex validation going on with my symfony form, and I need to be able to assign an …

php symfony symfony-forms
Right way to define and work with ENUM types from Symfony2 and Doctrine2

I'm using ENUM type in one of my tables but Doctrine doesn't like it so much. So I do my …

symfony doctrine-orm symfony-forms symfony-2.3