Top "Symfony-forms" questions

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

Symfony 2 : Add a custom form element, not in an Entity

I work with Symfony2 and I would like to create a registration form. I don't want to use FOSUserBundle. So, …

symfony symfony-forms
Symfony3: is it possible to change the name of a form?

With Symfony 2.7, you could customize a form's name in your EntityType class with the method getName() This is now deprecated. …

php forms symfony symfony-forms
How can I check whether the supplied CSRF token is invalid in Symfony2?

I have created a Symfony2 form and bound it to the Request. I need to explicitly ensure whether the CSRF …

validation symfony csrf symfony-forms
Problems With Multiple File Upload In Symfony2

I am making a Symfony2 application which needs to have a multiple image upload option. I have made the single …

php file-upload symfony doctrine-orm symfony-forms
Symfony 1.4 - How to set default values on sfWidgetFormChoice (checkboxes)

The following code creates a field with multiple checkboxes. How do I set the default values of these checkboxes? new …

symfony-1.4 symfony-forms
How to add an autocomplete field in a Symfony2 form for a collection and using Propel?

I'm using Symfony 2.1 forms with PropelBundle and I'm trying to refactor a form that had a drop-down list of objects (…

propel symfony-forms symfony-2.1
Build a form having a checkbox for each entity in a doctrine collection

I'm displaying an html table for a filtered collection of entities and I want to display a checkbox in each …

symfony symfony-forms symfony-2.2
Argument 1 passed to Symfony\Component\Form\FormRenderer::renderBlock() must be an instance of ...\FormView, instance of ...\Form given

Whole error is missiong namespace Symfony\Component\Form which is replaced with 3 dots, due to title maximum characters. So, I …

php forms symfony symfony-forms symfony-3.3
how to split long symfony form in multiple pages?

I want to create a form for an entity which has a many attributes. To ensure the ease of data …

symfony symfony-forms submit-button
Symfony 4 - how to add csrf token without building form?

I am reading tutorial here https://symfony.com/doc/current/form/csrf_protection.html how to add csrf token. It …

forms symfony symfony-forms csrf-protection