-----Original Message----- From: morphex@online.no [mailto:morphex@online.no]On Behalf Of Morten W. Petersen Sent: Wednesday, October 13, 1999 11:18 AM To: zope@zope.org Subject: [Zope] Is there an easy way?..
I have a form that has 12 checkboxes on it. On the action URL, I have an in tag, which iterates over the ?list? of checkboxes. Problem is, when one or none are checked, zope complains about the stuff being a string, and refuses to do anything. Quick fix please?
-Thanks in advance.
In your form ad a :list piece to the checkbox items As follows: <input type=checkbox name=option:list> This automatically changes the option to a list, even if there is just one. I do not think this will handle the case in which no checkbox is checked. To do this , you will have to add a condition to the action dtml method: <dtml-if "REQUEST.has_key('option')"> your stuff </dtml-if> Rik