Instead of customizing an SQLFORM, I've made my own FORM and handled the insert in form.accepts. Works as expected.
On Feb 1, 7:55 pm, DenesL <[email protected]> wrote: > On Jan 29, 12:50 am, Adi <[email protected]> wrote:> Ok, I removed the > SELECT entirely to see if the form submits, but it > > still doesn't. Now I'm doing this: > > > 1. created a read-only SQLFORM > > 2. did form[0].append(TR(<my custom form fields here>, <Add another > > button>)) > > > But the Add Another button doesn't submit. Firebug shows html to be > > OK. However the custom part of the SQLFORM doesn't include "id"s for > > the fields - which may mean even if form submits I won't be able to > > access "form.vars.myfield" . > > HTML form info is submitted in name=value pairs, ids are not relevant > for submission. > > > Any help here? I've been stuck for quite some time now. :( > > Help us help you. > When you post make it easy for the people willing to take a look at > your problem. > Think about what information/code would they need to reproduce it. > If you make changes show your new code. > There are several sites where you can post source code without messing > it up with, link to your posted code from here. > > Denes. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

