The way Ajax form submissions are being done with jQuery, the value of the submit button does not get sent with the post data. See https://groups.google.com/d/msg/web2py/708hxAdDGKY/2bNwbQVXc04J for more details (and possible workaround). Anthony
On Monday, August 22, 2011 9:06:12 PM UTC-4, TheSweetlink wrote: > I have a custom form for a SQLFORM.factory. > > The form has two buttons: > > <button type="submit" name="action" value="action1"></button> > <button type="submit" name="action" value="action2"></button> > > Clicking either button will submit the form and request.vars will have > the correct value. > > This works great until I try to LOAD my form as a component. > I was able to find out that when I LOAD my form, request.vars no > longer contains action as it used to upon clicking either action > button. > > What can I do to have the above buttons function similarly in a LOADed > component? > > Thank you in advance for your help. > > -David Bloom