I'm in search of a way to have multiple submit buttons on a form that would perform a different function depending on whichever button was pressed.
After pressing whichever button, the form should be submitted and after performing the function, return the user back to the original form. I have a standard 'index' method that builds the form and adds another button like: form.add_button("Reset", URL("reset", args = dict(deploy_name = request.vars.deploy_name))) When i press the Reset button, it calls the *reset* method I have defined, but I have two problems: 1. I can't seem to get the value of the deploy_name, which is a field on the form. Is args the proper method of passing variable information or should I be using something else? 2. I can't seem to redisplay the form as it originally started out as. I tried adding a *redirect('index')* call to the end of the *reset* method, but that causes strange operation. Thanks! -- 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.