yes, you are right, it's javascript/web2py problem, fix it with:
*controllers/default.py*
def pouchdb():
form = SQLFORM.factory(
...
)
if form.process(formname = request.function).accepted:
response.flash = 'form accepted'
elif form.errors:
Why do you want pouchdb with web2py ? for client cache?
pouchdb is a client only database unless you sync it to a couchdb server.
Web2py is a server side framework.
Anyway your problem is a javascript/web2py problem , not a pouchdb/web2py
problem...
maybe this helps you a litle
tested with min app from js on views side, but the result is not expected,
the form field name store in indexeddb {{=request.vars.your_name}} as is
not the form field value
*controllers/default.py*
def pouchdb():
form = SQLFORM.factory(
Field('your_name', requires = IS_NOT_EMPTY() )
3 matches
Mail list logo