[symfony-users] Re: Re-using a 1.1 form on the same template

2008-04-11 Thread tom ee
Thanks for the info and tips!! --~--~-~--~~~---~--~~ 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] Re: Re-using a 1.1 form on the same template

2008-04-10 Thread Fabien POTENCIER
Oops, I made a mistake in my previous answer: $form[$i]->getWidgetSchema()->setNameFormat('form['.$i.'][%s]'); Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.com | aide-de-camp.org Tél: +33 1 40 99 80 80 tom ee wrote: > Hi everyone, > > Hopefu

[symfony-users] Re: Re-using a 1.1 form on the same template

2008-04-10 Thread Fabien POTENCIER
You definitely need to create 5 separate forms in your actions as one default value is different for each as you've said (changing a field value in the template is not a good thing IMO). To have unique ids, and to be able to validate/save your forms, you need to change the name format of each