hum.... right! Ok, I think that's my problem. I will work with that! Thanks :)
On Oct 31, 12:20 pm, DenesL <denes1...@yahoo.ca> wrote: > Maybe you are missing some of the other required parts: > form.custom.begin > form.custom.end > form.hidden_fields() > > On Oct 31, 11:35 am, mart <msenecal...@gmail.com> wrote: > > > > > > > > > Hi all, > > > thanks for the replies! > > > so, in the view, instead of doing {{=form}}, i wanted to group for > > fields of similar type together. > > > I tried doing things like this: > > > <fieldset> > > <legend><h1>Request info</h1></legend> > > <table width="80%"> > > {{for x in range(0,14):}} > > <tr> > > <td> > > {{=form[0][x]}}{{pass}} > > </td> > > </tr> > > </table> > > </fieldset> > > > and in the end, there in the {{=form[0][-1]}} for the submit button > > (which is there, but doesn't submit) > > > Thanks, > > Mart :) > > > On Oct 31, 8:43 am, Anthony <abasta...@gmail.com> wrote: > > > > 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 :)