>>> web.form.Checkbox('checkbox1', value = 'test').render()
'<input type="checkbox" id="checkbox1" name="checkbox1"/>'Still no 'value' attribute. On 8 Wrz, 16:34, Anand Chitipothu <[email protected]> wrote: > 2009/9/8 SeC <[email protected]>: > > > > > Hi. > > I noticed that form.Checkbox cannot have value, it's always 'on', so > > is there any other to create multiple checkboxes with the same name > > and diffrent values? Right now I'm using something like this: > > l = [] > > for i in my_list: > > l.append(form.Checkbox('x_' % i.id)) > > form = form.Form(*l) > > > and then after POST I iterate and if input name starts with 'x_' I > > parse that ID etc. > > I found this bug report -https://bugs.launchpad.net/webpy/+bug/128233 > > - but it's old and left untouched. > > Fixed now. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
