If I understand the question... you can have two or more forms form1=crud.create(db.table) form2=crud.create(db.table_file) return dict(form1=form1,form2=form2)
as long as the forms are about different tables. Else you have to use SQLFORM and in accept give the forms different formname(s). On Jun 11, 9:15 am, Kenneth <kenneth.t.lundst...@gmail.com> wrote: > > in controller > > form=crud.create(db.page) > > return dict(form=form) > > Is this possible with two tables? I have two tables, page and > page_files, the page is stored in page and all files in page_files as > one page can have many files. > > > - you use form.vars.id. That is only created by web2py after calling > > the form.accepts function, i.e. after insert. > > It worked nicely because I did the testing while editing the page not > adding. But nice to know.