Hi Thomas, This is my code
$this->form = new ApplicationsForm(); $this->form->addWidget(array( 'user_id' => new sfWidgetFormInputHidden(array(), array ('value' => $this->getUser()->getGuardUser()->getId())), 'test_id' => new sfWidgetFormInputHidden(array(), array ('value' =>$request->getParameter('test_id'))) )); And unfortunately it only outputs these two hidden fields. There are other inputs that already defined in the form class of ApplicationsForm which didn't show up. I have tried to use HTML to do this in the template but when i submit I would get the Extra Input error from Symfony. On Nov 21, 4:16 am, Thomas Dedericks <[EMAIL PROTECTED]> wrote: > Hi. > > I don't understand the problem. Can't you just add the hidden fields you > need to the widgets schema, using sfWidgetFormInputHidden() ? > > Le jeudi 20 novembre 2008 à 11:43 -0800, Flancer a écrit :> If I use > setWidgets the form will only display the form elements I > > defined in it. > > > The reason for doing so is so that I can add values to hidden inputs > > in a form. > > > Any ideas on how to do this? > > > Thank you. > > -- > > Thomas Dedericks > > [EMAIL PROTECTED] > GSM: +32 (0) 499 23 60 22http://tequila-studio.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---