[web2py] Re: {{=form.custom.widget.fieldname}} for Remember me checkbox

2013-11-21 Thread Michael Gheith
Great, thanks for this Anthony! On Thursday, November 21, 2013 2:31:18 PM UTC-6, Anthony wrote: > > Because that field is not part of the database table, it isn't part of the > SQLFORM and therefore not in form.custom.widget. Instead, it is added to > the form DOM after the form has been created

[web2py] Re: {{=form.custom.widget.fieldname}} for Remember me checkbox

2013-11-21 Thread Anthony
Because that field is not part of the database table, it isn't part of the SQLFORM and therefore not in form.custom.widget. Instead, it is added to the form DOM after the form has been created. If you want just the checkbox widget, you can do: {{=form.element('input#auth_user_remember')}} Anth