hi, i have a question about hidden fields.
i have a form that looks like this:
fields=['f1','f2','f3'...]
hidden=dict(fieldname=val)
form = SQLFORM(db.table, fields=fields, showid=False, hidden=hidden)
in the view it's simply {{=form}}
when i look at the view, there's a hidden input field for my hidden
field. however, when i do the insert, the hidden field is not getting
inserted into my db. the accept info is:
if form.accepts(request.vars,session):
session.flash='Added'
redirect(URL(r=request, f="function"))
am i doing something wrong? why would the hidden field show up
properly in the view but not update the db?
thanks,
matt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---