As a workaround I have duck punched the SQLFORM.accepts() method to resolve
the issue - however it is a kludge and I would prefer not to do this.
Please see my code below.
###
# Fix SQLFORM
I have a custom currency widget (that renders a text field with a '$' at
the front of it) and I'm using the bootstrap3_inline formstyle for
generating forms using SQLFORM.
The formstye is executed before SQLFORM.accepts().
If an error occurs in my form, the block of code in
In case anyone else ever has this problem, I will post my own solution.
Web2Py traps all form submissions in web2py.js. To override this behaviour
we need to add the "no_trap" class to the form declaration:
single_payment_form = SQLFORM.factory(
Field('tenant_name','string',
I have a component that has a payment form that uses the Authorize.net
gateway. I want to be able to display a bootstrap modal dialog with payment
confirmation information before the form is actually submitted, but after
the user clicks the submit button.
single_payment_form = SQLFORM.factory(
Hello World,
I have a table named File is supposed to be referenced by other tables in
an attempt to simulate the "upload' field type. This table is coupled with
a Folder table and simulates a file system in the database.
File Fields:
Field('name', 'string', label=T("Name"),
5 matches
Mail list logo