Fran - thanks. that's great. C

On Jul 29, 8:53 pm, Fran <francisb...@googlemail.com> wrote:
> On Jul 29, 8:13 pm, Carl <carl.ro...@gmail.com> 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 web2py@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to