>
> I would have to assume that the hiddens are only generated
> because of the call to FORM.accepted().
Correct. FORM.process() ultimately calls FORM.accepts(), which adds a
"formname" attribute. When the form is serialized in the view, the
FORM.xml() method calls FORM.hidden_fields(), which
On 08/02/2012 12:29 PM, Niphlod wrote:
formname='something' serializes within the form a hidden input, so
web2py can distinguish what form is being submitted. If the submitted
values were to be serialized as urlencoded, just to explain, for the
first form would be
name=value&formname=form_one
a
formname='something' serializes within the form a hidden input, so web2py
can distinguish what form is being submitted.
If the submitted values were to be serialized as urlencoded, just to
explain, for the first form would be
name=value&formname=form_one
and for the second
name=value&formnam
On 08/02/2012 11:35 AM, Massimo Di Pierro wrote:
if you have two forms in one page, web2py needs to be able to
discriminate which one is being submitted. It does that by using a
input type=hidden name=formname.
But the forms below have the same name. I don't
think I understand completely.
Ma
if you have two forms in one page, web2py needs to be able to discriminate
which one is being submitted. It does that by using a input type=hidden
name=formname.
Massimo
On Thursday, 2 August 2012 13:13:10 UTC-5, Toby Shepard wrote:
>
> In the forms section:
>
> It is possible to have multiple
5 matches
Mail list logo