something like this in controller
checkbox = INPUT(_name='delete', _type="checkbox", _id='delete')
if condition:
checkbox['_checked'] = "checked"
or in view
{{
if condition:
=INPUT(_name='delete', _type="checkbox", _id='delete',
_checked="checked")
else:
=INPUT(_n
I found my problem if i remove _value, _checked works otherwise dont work...
Regards
2017-01-16 17:27 GMT+00:00 Gaurav Vichare :
> INPUT(_name='delete', _type="checkbox", _id='delete', _checked="checked")
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github
2 matches
Mail list logo