In my form, I have a field called "type_0", and I have a JavaScript
button to "Add another type", which copies the first field to make a
new field called type_1, type_2, type_3, and so on. But this creates a
problem when I submit and validate the form. I get the form error
"Unexpected extra form field named 'type_1'", because the symfony form
object doesn't include those fields.

So my question is how do I handle the situation where JavaScript
dynamically creates new form fields that are not defined in the form
object's widget schema?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to