What steps will reproduce the problem? 1. In the controller I have a custom form that contains a password:
form = SQLFORM.factory(Field('afield', 'password'))
form.vars.afield = 'some initial password'
In the view
{{=form.custom.begin}}
{{=form.custom.widget.afield}}
{{=form.custom.submit}}
{{=form.custom.end}} What is the expected output? What do you see instead? At page load:
Expected output: afield text field must be: ***
Instead: afield text field is empty. What version of the product are you using? On what operating system? Web2py 1.91.6
Windows 7
From ionelant...@gmail.com on February 07, 2011 09:46:32
What steps will reproduce the problem? 1. In the controller I have a custom form that contains a password:
form = SQLFORM.factory(Field('afield', 'password')) form.vars.afield = 'some initial password'
{{=form.custom.begin}} {{=form.custom.widget.afield}} {{=form.custom.submit}} {{=form.custom.end}} What is the expected output? What do you see instead? At page load:
Original issue: http://code.google.com/p/web2py/issues/detail?id=187