Hi!!! http://web2py.com/books/default/chapter/29/07/forms-and-validators#keepvalues
Sometime you want an insert form that, upon submission and after the insert, retains the preceding values to help the user insert a new record. This can be done: db=SQLDB('sqlite://db.db') db.define_table('user', SQLField('name','string')) And in controller def test(): form=SQLFORM(db.user) if form.accepts(request.vars,session,keepvalues=True): response.flash="record inserted" return dict(form=form) Notice the keepvalues=True argument of the accepts method. http://www.web2py.com/AlterEgo/default/show/46 Regards. El miércoles, 6 de julio de 2016, 17:38:49 (UTC-3), Jing Lu escribió: > > Dear Web2Py developers, > > Is there any way that I can keep the user input value in the form using > SQLFORM? > > > > Thanks, > Jing > -- 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/d/optout.