Now it's working only with form.element(_name="first_name"). The controller is the same for 2 types. Tomorrow I'll post everything, but now I can post the controller simple structure:
def register(): form = SQLFORM.factory(db.person, db.auth_user,db.researcher) if form.process().accepted: ##register people in db The view was the same... I need a auth structure with 3 tables: People has n auth and auth has n researcher, and I really need it... Em terça-feira, 22 de outubro de 2013 17h31min40s UTC-2, Anthony escreveu: > > Please show all of your controller and view code. > > On Tuesday, October 22, 2013 3:18:16 PM UTC-4, Diogo Munaro wrote: >> >> Sorry Antony, I forgot the = here, but the code have it. >> >> The fields are there, but no validators work >> >> Em terça-feira, 22 de outubro de 2013 12h33min37s UTC-2, Anthony escreveu: >>> >>> {{form.custom.begin}} >>>> >>>> {{form.custom.widget.first_name}} >>>> >>>> {{form.custom.submit}} >>>> {{form.custom.end}} >>>> >>> Is that the actual code? If so, you need to precede each item above with >>> an "=". >>> >>> >>>> The fields comes without validators. Then, it reflect problems with >>>> form.process().accepted >>>> >>> Validation happens in the controller when form.process() is called, not >>> in the view. So you still get validation when you use form.custom.widget. >>> >>> >>>> {{form.custom.begin}} >>>> {{=form.element(_name="first_name")}} >>>> >>> form.element(_name="first_name") is the same as >>> form.custom.widget.first_name. >>> >>> Anthony >>> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.