Hi Mark, I'm working a lot with dynamic forms myself and had the same problem.
Here is my solution: Create a widget which additionally renders the hidden field: http://trac.ullright.org/browser/trunk/plugins/ullCorePlugin/lib/form/widget/ullWidgetCheckboxWrite.php :-) Klemens On Mar 27, 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 -~----------~----~----~----~------~----~------~--~---
