Checkbox doesn't work without a value attribute set

Bug #585428 reported by Bud P. Bruegger
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

Tried with 3.3 and 3.4:

Using a Checkbox without the optional 'value' parameter comes out always False, no matter whether the box is checked or not.
An example is the example at

myform = form.Form(

Changed to
    form.Checkbox('curly', value='something'),
it works.

Revision history for this message
Bud P. Bruegger (bud-ancitel) wrote :

The following change seems to be the fix: line 298: (Checkbox.render)

attrs['value'] = self.value

attrs['value'] = self.value or

Revision history for this message
Anand Chitipothu (anandology) wrote :
Changed in webpy:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.