Hi! I'm newbie with web2py. I do tutorial in FORM chapter Model -------------------- db.define_table('person', Field('personname', 'string', requires = IS_NOT_EMPTY()))
Controller : -------------------- def index(): form = SQLFORM(db.person) if form.process().accepted: session.flash = "accepted" redirect('default', 'list') else: response.flash = "input info" return dict(form = form) View : ---------------------- {{=form}} When I submit form with empty value (person name), validation does not work. When I submit form with value, form does not redirect to page I expected. Can anyone give me ideas? Thanks, Tuan. -- --- 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.