Closed tbredillet closed 8 years ago
Hi @razbounak,
Can you translate this issue and fix the format plz? Can be useful for other people.
Thx
It's done !
Did you check if your form type is called?
Where can I see that ?
With a die('ok');
in buildForm
for instance :)
Yes, 'ok' is display, so the good Type is used for create the form but the wrong Type is used for check the data of the form
The form does not validate the data, you have to override this https://github.com/mremi/ContactBundle/blob/master/Resources/config/validation.xml, see http://symfony.com/doc/current/bundles/override.html.
Finally, I have add this line in my view :
{% do form.title.setRendered %}
<input type="hidden" id="contact_form_title_0" name="contact_form[title]" value="mr" />
I know this is not the better way but I don't achieve in override the Type and validation
Indeed, this is a wrong way, you should override the validation (and probably tweak the validation groups). I let you read the documentation to do it.
Hi remi, je I would like remove the fields "title" of your bundle in override the Type but it doesn't works and I'm blocked since few days
Thank you for helping me !