Symfony2 with add row button

I have a form in Symfony2, and I want to give the user the opportunity to add a line to it if there is additional information that they want to provide. I know you can do this in JavaScript, is there a way to do this in symfony2 using a framework?

If not, which one is best? With all the verification and everything, without finding any viable option when searching on Google ... Thanks for any suggestions!

+4
source share
1 answer

Do you want to add a dynamic field to your form? There is a very informative article about this; It was very useful for me to implement something like this:

http://sf.khepin.com/2011/08/finally-through-symfony2-forms-and-collectiontype-make-it-dynamic/

He also created an example set:

https://github.com/khepin/ProductBundle

+5
source

Source: https://habr.com/ru/post/1398926/


All Articles