I'm sure the below is not everything you can accomplish with sqlform. Hope
this helps.
myuser = db.auth_user[auth.user.id]
SQLFORM.factory(
Field('name', default=myuser.first_name),
Field('lname', default=myuser.last_name),
Field('email', default=myuser.email),
Field('newpass1', 'password', requires=CRYPT()),
Field('newpass2', 'password', requires=CRYPT()),
Field('oldpass', 'password', requires=CRYPT()),
)
#view.html
{{=form.custom.begin}}
{{=form.custom.widget.name}}
{{=form.custom.widget.lname}}
{{=form.custom.widget.email}}
..... etc etc
{{=form.custom.end}}
-Thadeus
On Fri, Nov 27, 2009 at 4:58 PM, waTR <[email protected]> wrote:
> need to be able to insert my own custom fields and do
> validation on those fields before the data is queried to the DB, but
> after the user has clicked "SUBMIT". The form will ne
>
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.