Is there any plan to allow people to modify individual classes of individual elements in the future? ie. {{=form.custom.widget.notes(style_class="txtarea large")}}
Would be really nice to have access to individual elements' style on an as needed basis. On Nov 27, 4:14 pm, waTR <r...@devshell.org> wrote: > that's perfect! > > thank you T & M! > > On Nov 27, 3:56 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > Not for each element (not without using jquery) but you can change the > > class for the form > > > form['_class']=.... > > > and than use that to style the content. > > > On Nov 27, 5:25 pm, waTR <r...@devshell.org> wrote: > > > > 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.