Override a Widget’s Default In a web2py View

I have been trying to learn web2py over the last few months. I have found it hard to do something like update a form widget in a view, especially that of a password field. I learned that you could do it when creating the Field object and setting default='blahblah', but what if you wanted to change it later, like in a view? Well, here is:


I spent some time digging around for this. Now, if this is a registration form, this might not work.

This entry was posted in web2py and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *