That is because you have two create form for the same table. Form
processing would not work either.
If the form where about different tables, the html "id" attributes
would be different.
If you need to customize them anyway, you can do one step lower level:
form1=SQLFORM(somedb,_id="....")
if form1.accepts(request.vars,session):
redirect(....)
and same for form1.
Massimo
On Jun 23, 4:20 pm, Robert Marklund <[email protected]> wrote:
> I have some problem with multiple create forms on the same page.
> def index():
> form1 = crud.create(somedb)
> form2 = crud.create(somedb)
> return dict(form1=form1, form2=form2)
>
> The problem here is that all the rows and the inputs gets the same html id
> and thats not good for jQuery manipulation.
>
> I can see a solution in adding a form_prefix=None variable to SQLFORM that
> can fix all this.
>
> /R
>
> --
> ______________________________________________
> Robert Marklund
>
> Phone: +46 (0)46 19 36 82
> Mobile: +46 (0)70 213 22 76
> E-mail: [email protected]
> ______________________________________________
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---