Is there a way to change the default classes OR id of each element in factory()? Or is there any other way of achieving the above while assigning custom CSS classes to the form?
On Nov 27, 3:05 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > 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 <r...@devshell.org> 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 web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.