hi Fran,

I've figured it out.

In my view I've added
{{if form.errors and form.errors.password_two:}}<div class="error"
id="password_two__error">Password fields don't match</div>{{pass}}

at the end of my "Verify password" td.

thanks for your help.

Carl

On Jul 30, 12:48 pm, Carl <[email protected]> wrote:
> hi Fran,
>
> Have looked at {{=form.custom.begin}} and it looks just the ticket. It
> enables me to have one User table (which I've modified in db.py with
> additional fields) and then have two views: one for each type of user.
>
> I've one last sticking point...
>
> Now I'm no longer using {{=form}} I don't get the Password2 field
> added for free nor its data validation (that password == password2).
>
> And the thought occurs that if I wanted to have recaptcha I'd run into
> similar issues.
>
> Do you know if/how I can add password2 handling into my custom form
> view? (and recaptcha if I wanted that too?)
>
> Many thanks for your time
>
> Carl
>
> On Jul 29, 8:53 pm, Fran <[email protected]> wrote:
>
>
>
> > On Jul 29, 8:13 pm, Carl <[email protected]> wrote:
>
> > > for the future: being able to set my own form for register() would be
> > > real nice. at present I can do that only if I want to pull in a remote
> > > authentication system.
>
> > You can have extra fields on the register() form very easily - the
> > form is simply a SQLFORM of the auth_user table...so just create a
> > custom auth_user table with the fields you want before you call
> > auth.define_tables()
>
> > You can also make a full custom form in the usual way:
> > In the view instead of {{=form}} you can do:
> > {{=form.custom.begin}}
> > {{=form.custom.widget.first_name}}
> > etc
> > {{=form.custom.submit}}
> > {{=form.custom.end}}
>
> > & surround these elements with whatever HTML you want...
>
> > As long as the mandatory fields are populated then you're good to
> > go :)
>
> > F
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to