I believe your problem is the XY problem. http://mywiki.wooledge.org/XyProblem Y = "submitting to forms to the same controller". Do no ask about Y. What it your original problem X for which you think Y is a good solution?
On Saturday, 30 August 2014 15:24:16 UTC-5, Andrey K wrote: > > Hi Massimo, > Here is my dilemma: > I have one view with 3 tabs (DIVS), where I would like to have one tab for > user tool selection and two forms in 2 separated tabs(DIVs) : 1)static form > and 2)dynamic form(generated based on user selection in first tab). Also I > would like to submit all information from both forms into only one > controller as two separated peaces of data, where I can nicely parse it and > store in one record of the db.table, so it would be nice to have only one > button to trigger it. > I have tried many ways but it did not work exactly the way I need it: > either I can't present two forms in separated view divs or I can't submit > both to only one controller. The last approach I had that did it almost the > thing was to use HTML5 _form attribute for all form elements and button and > related form _id attribute. But I have trouble submitting data back to the > controller that generate my dynamic form, added to DIV via > web2py_ajax_component. > Please help me out. What would be the way to make it in w2p? > -- 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.