[web2py] Re: Controlling submit button placement

2010-06-05 Thread MikeEllis
Thanks, Massimo, that's good to know. In my case, form[1] is the form and form[0] is a dynamically generated H3 element that gets inserted when the form is built. I could (and probably should) move that to the view instead of having it buried in a function called by the controller. No wonder I c

[web2py] Re: Controlling submit button placement

2010-06-05 Thread mdipierro
This will remain backward compatible but can also use (since 1.79.1) {{=form.custom.begin}} {{=form.custom.submit}} {{=form.element('form')}} # use jquery syntax to select element {{=form.custom.end}} Not sure what form[1] is since it should not exist unless you appended something to the form.