I also checked using chrome developer tools that the div which contains
the _formkey and _formname is not getting generated (missing from HTML).
May be that is the reason the form is not working.
What may be the reason for this ? and what is a feasible solution ?
On Monday, April 2, 2012
I tried with form.validate() and also with form.process().accepted. Can
you provide some sample code on how do I achieve the above ?
I am already providing the name of the form while declaring it. How is it
different from web2py generated _formname ?
Your original code simply set the
I also checked using chrome developer tools that the div which contains
the _formkey and _formname is not getting generated (missing from HTML).
May be that is the reason the form is not working.
What may be the reason for this ? and what is a feasible solution ?
Sounds like you're not
Thanks Anthony.
But as I stated above, the problem is the div element which contains the
_formname and _formkey is not getting generated on the page for the image
upload form and I think that it might be creating the problem.
What can be the reason for it ?
On Monday, April 2, 2012 6:29:41
But as I stated above, the problem is the div element which contains the
_formname and _formkey is not getting generated on the page for the image
upload form and I think that it might be creating the problem.
What can be the reason for it ?
Did you see my other reply? It sounds like
In the method which defines the registration form, I return upload_form
alongside as :
return(reg_form=reg_form,upload_form=upload_form)
The problem is that the _formkey and _formname hidden fields are created
when you call form.accepts() -- so you have to call form.accepts() both
when
6 matches
Mail list logo