On Tuesday, February 5, 2019 at 1:17:50 PM UTC-8, Ben Duncan wrote: > > What is the best way to clear a form in web2py after it has been submitted. > > Thanks > > *Ben Duncan* > DBA / Chief Software Architect > Mississippi State Supreme Court > Electronic Filing Division >
If you're using the usual FORM() and SQLFORM() helpers, your controller will either redirect away from the form, or return it again. Unless you use "keepvalues=True"), the form will be cleared when it is redrawn. Note that the user's browser may suggest previous input when the user starts entering values. If you're using an HTML FORM tag directly, you may need to refresh the page. I don't speak from experience (although I've done FORM tags in other contexts). I don't know much about SQLFORM.factory/grid as I've only made limited use of them. SQLTABLE falls outside your question. /dps -- 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.