[web2py] Re: how to add "checked" to an input helper ?

2017-01-16 Thread Gaurav Vichare
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

Re: [web2py] Re: how to add "checked" to an input helper ?

2017-01-16 Thread António Ramos
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