FYI, an easy way to check these things is to start a web2py shell, create a form, and use print statements:
>>> form=SQLFORM(db.mytable) >>> print form[0][-1] <tr id="submit_record__row"><td class="w2p_fl"></td><td class="w2p_fw"><input type="submit" value="Submit" /></td><td class="w2p_fc"></td></tr> >>> print form[0][-1][-2][0] <input type="submit" value="Submit" /> On Monday, October 31, 2011 8:40:03 AM UTC-4, Anthony wrote: > > If you're using the default table formstyle, that would be the last <tr> > of the table. The actual submit button would be f[0][-1][-2][0] (i.e., > [table][last row][second to last td][submit button]). Also, are you > including the rest of the form (i.e., is it between <form> </form> tags)? > > Anthony > > On Monday, October 31, 2011 2:54:53 AM UTC-4, mart wrote: >> >> Hi, >> >> in a view, should i be able to execute this submit button? {{=form[0] >> [-1]}} >> >> it does display the button, but doesn't submit.. >> >> Thanks, >> Mart :) > >