I finally managed this with a form with embedded forms which gets populated dynamically depending on the given input values. :)
Thanks for the answer anyway. Asier. On May 27, 9:34 am, Tom Ptacnik <to...@tomor.cz> wrote: > I think it's easy to do that with classic Symfony sfForm with hand > made template ;) > > Read > thishttp://www.symfony-project.org/forms/1_4/en/03-Forms-for-web-Designers > and you will solve your situation. > > On 24 kvě, 16:01,Asier<aillarrame...@gmail.com> wrote: > > > Hi there, > > > I started with a form, which is made by hand because of it's > > complexity (it's a javascript modified form, with sortable parts, > > etc). The problem is that now I need to do the validation, and it's a > > total mess to do it from scratch in the action using the sfValidator* > > classes. > > > So, I am thinking to do it using sfForm so that my form validation and > > error handling can be done more easier and so I can reuse this form > > for the Edit and Create pages. > > > The form is something like this: > > > <form> > > <input name="form[year]"/> > > <textarea name="form[description]"></textarea> > > <div class="sortable"> > > <div class="item"> > > <input name="form[items][0][name]"/> > > <input name="form[items][0][age]"/> > > </div> > > <div class="item"> > > <input name="form[items][1][name]"/> > > <input name="form[items][1][age]"/> > > </div> > > </div> > > </form> > > > The thing is that the sortable part of the form can be expanded from 2 > > to N elements on the client side. So that it has variable items > > quantity which can be reordered. > > > How can I approach this problem? > > > Any ideas are welcome, > > thank you. :) > > > -- > > 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 > > athttp://groups.google.com/group/symfony-users?hl=en -- 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