SQLFORM names the form based on the name of the db table (as well as the
type of form -- create or update). If you have multiple forms on the page,
their names will not conflict unless they are based on the same db table,
and in that case, you can specify your own unique form names via the
"formname" argument to the .process() method.
Anthony
On Friday, January 18, 2013 9:47:28 AM UTC-5, Alex Glaros wrote:
>
> Thanks Denes,
>
> but it seems that "form" doesn't uniquely identify anything, or is the
> "return
> dict(form=form)" the part that gives the output a unique name?
>
> I mean would other functions in the same controller have syntax to give
> distinguishing names such as
>
> "return dict(form2=form2)", and "return dict(form3=form3)", and "return
> dict(form4=form4)"?
>
> Thanks,
>
> Alex Glaros
>
>
> On Friday, January 18, 2013 3:48:29 AM UTC-8, DenesL wrote:
>>
>>
>> Hi Alex,
>>
>> you can't call the function from the view, you would have to pass it
>> somehow or re-define it there, but the question is why?.
>>
>> Normally you would just write {{=form}} in the view to display the form
>> returned form the function.
>>
>> Regards,
>> Denes
>>
>
--