Hi Thomas,

Sorry, it should be setWidgets. Not addWidget that was a typo that I
copy and pasted as I tried to make it work.

However I have found a solution while trying out everything I could
find from the list of APIs, which was to use the setWidget method
instead of setWidgets. Would be great if the usage of setWidget is
illustrated in the forms book.

On Nov 21, 10:42 pm, Thomas Dedericks <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> Are your "user_id" & "test_id" fields related to the Application
> object ?
>
> If they are, you should add them in the configure() method of
> ApplicationForm.class.php.
>
> And if they're not, they should not be here ! :)
>
> BTW, I could not find any documentation about the addWidget method in
> the API doc. Which version of symfony are you using ?
>
> > 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.
>
> That is the normal behavior. If you add data, you have to add validators
> too. You can bypass this using the allow_extra_fields option :
>
>         $this->validatorSchema->setOption('allow_extra_fields', true);
>
> --
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to