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.