Pure HTML form

48 views
Skip to first unread message

Jeff Riley

unread,
Jun 13, 2016, 7:27:20 PM6/13/16
to web2py-users
Hello all.  So sorry to bother you again.  Since I have to overlay form fields on top of a canvas, I have to build pure HTML form elements (at least that is all I can think to do).  My problem is when I submit the form I am getting errors in form even though I am filling out every field.  I am attaching all the relevant code if someone would not mind having a look.  I do really appreciate the help.
PureHTMLForm.docx

Dave S

unread,
Jun 13, 2016, 7:47:51 PM6/13/16
to web2py-users


On Monday, June 13, 2016 at 4:27:20 PM UTC-7, Jeff Riley wrote:
Hello all.  So sorry to bother you again.  Since I have to overlay form fields on top of a canvas, I have to build pure HTML form elements (at least that is all I can think to do).  My problem is when I submit the form I am getting errors in form even though I am filling out every field.  I am attaching all the relevant code if someone would not mind having a look.  I do really appreciate the help.

What errors are you getting?

From a quick look at your code (that's a big form!), I don't think you are setting the formkey, which is involved in validation (the book refers to stopping double submissions here.
<URL:http://web2py.com/books/default/chapter/29/07/forms-and-validators#Hidden-fields>
but it also aids CRSF protection, as mention in the Introduction and Other Recipes).

If this isn't the issue, please post the error information details.

/dps

Jeff Riley

unread,
Jun 13, 2016, 8:59:13 PM6/13/16
to web...@googlegroups.com
Dave thank you. I will check this out and see.  As far as errors I am just getting the pop-up with no field showing issues. Which I am assuming is because the Web2py Ajax does not handle html form elements.

Thank you,
Jeff Riley
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/25A0IwF8q4Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeff Riley

unread,
Jun 14, 2016, 10:50:12 PM6/14/16
to web2py-users
Oh lord folks.  I had the same name for two fields.  That was my only problem.  Thank you all very much.
Reply all
Reply to author
Forward
0 new messages