I'm trying to make a use of this piece of code but nothing works. Can
you please tell me where can I find some fine documentation that shows
exactly how to use it or maybe write me an example because I have no
idea where to put it in my form to make it work.
HELP PLEASE!!

form.element(_name=='password').insert(INPUT(_name='password2',requires=IS_EXPR('value=
%s' % repr(request.vars.password)) ))

or another example

How do I use this piece of code to customize form field length???
form.element(_name='last_name')['_size']=20

Can anyone show me how to do that because there is no example in
documentation, no properly written piece of code to meke use of.



On 2 Lip, 12:25, elfuego1 <elfue...@gmail.com> wrote:
> Thank you for your speedy help!!!
>
> On 2 Lip, 12:13, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > you can do for example (assuming trunk)
>
> > form.element(_name=='password').insert(INPUT(_name='password2',requires=IS_­EQUAL_TO(request.vars.password)))
>
> > if you do not use trunk instead of IS_EQUAL_TO(request.vars.password)
> > you can use
>
> > IS_EXPR('value=%s' % repr(request.vars.password))
>
> > On 2 Lug, 04:58, elfuego1 <elfue...@gmail.com> wrote:
>
> > > Since I am customizing my registration form, can you tell me what to
> > > do to havepasswordverificationfunctionality? I don’t know how to
> > > implement it in my form. I havepasswordinput field in the form and
> > > corresponding field in my database. Do I have to add additional field
> > > for password2 and somehow compare those two fields or is there some
> > > functionality in web2py which I could use out of the box?
>
> > > Best regards.

Reply via email to