On Apr 4, 2005 9:00 AM, Dan E <[EMAIL PROTECTED]> wrote: > Hi, > Has anyone found a way to get a list of boolean values from > dynamically created checkboxes. > I have created a bunch of checkboxes within a repeat loop like this: > > <input type="checkbox" > class="noborder" > name="cb_array:list:int" > tal:attributes="tabindex tabindex/next; > checked python:test(curr_prop, 'checked', None);"> > > but when I access the cb_array from my python script, I only get the > checked values (and I can no longer match the values up with the > checkbox they came from).
You need to keep a server-side list of the checkboxes and check which ones aren't there. Web browsers don't send back checkboxes that aren't checked - it's an HTML feature. -- Phillip Hutchings http://www.sitharus.com/ [EMAIL PROTECTED] / [EMAIL PROTECTED] _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )