Hi, Declare your checkboxes on the form as lists explicitly: <input type="checkbox" name="checkbox:list"> ----- Original Message ----- From: "D. Rick Anderson" <ruger@comnett.net> To: <zope@zope.org> Sent: Wednesday, August 07, 2002 5:07 PM Subject: [Zope] lists
I have a group of checkboxes on a site that I want to parse into an email. I've been trying to use dtml-in to iterate through the checked boxes, but if they only check one box then it's not a list anymore and dtml-in barfs. Is the only solution to trap an error and render it as a var in the except? like this:
<dtml-try> <dtml-in checkbox> <dtml-var sequence-item> </dtml-in> <dtml-except> <dtml-var checkbox> </dtml-try>
or is there a more elegant way to do this?
TIA
Rick
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )