You can't store two forms in the same variable -- the second will simply 
overwrite the first. Instead, you must use separate variables:

form1 = SQLFORM(...).process(formname='form1')
form2 = SQLFORM(...).process(formname='form2')

Anthony

On Saturday, July 25, 2015 at 5:07:44 PM UTC-4, Alex Glaros wrote:
>
> There are two forms in one view
>
> What is syntax for referencing each form's formname in view?
>
> Tried variations including the following:
>
> {{=form(formname='view_checklist')}} <!-- this is the first form -->
>
> {{=form, _formname='view_comment'}} <!-- this is the second form -->
>
> thanks,
>
> Alex Glaros
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to