I am not sure I understand why this is a problem. Can you not check on
submission if $request->hasParameter('checkbox_field') and if it doesn't
exist then it obviously wasn't checked? Or am I missing something?

Gareth

On Fri, Mar 27, 2009 at 1:33 PM, Mark Smith <[email protected]
> wrote:

>
> Apologies for the double post. I accidentially hit return  before I
> had finished:
>
> I am reading a dynamic form with a bunch of check boxes on it. It
> would make my task so much easier if the unchecked fields got posted
> with false or null values.
>
> The common workaround for this is a hidden input tag with the same
> name:
> http://iamcam.wordpress.com/2008/01/15/unchecked-checkbox-values/
>
> But in symfony you can't have 2 form widgets with the same name on the
> schema... So is there a way  to ensure that unchecked check boxes
> still submit a value with symfony?
>
> Thanks for any help.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
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