[Zope] Passing the value of a checkbox from a form to a dtml-method

Thomas B. Passin tpassin@mitretek.org
Tue, 1 May 2001 11:31:03 -0400


[Gitte Wange]


I have a problem doing <subject>
I have added a checkbox in a form, but when the submit button is hitted, the
value of the checkbox isn't passed along to the receiving method.
The checkbox code looks like this:
<INPUT TYPE="checkbox" NAME="isPublic">

You have to supply a "value" attribute.   For example, if you have

<INPUT TYPE="checkbox" NAME="isPublic" value='on'>

Then, when the box has been checked, the form will contain 'on' as the value
of 'isPublic'.  If the box is not checked, that property will not exist in
the form's returned data.

Cheers,

Tom P