|
Add confirmation to form submit
|
|
by
mr.freeze
on
2009-11-23
|
Category:
Javascript
|
Tags:
form
submit
confirm
|
|
Notes: This is an easy way to add a confirmation dialog during a form submit
|
|
Simply do this:
def delete_something():
form = SQLFORM.factory(Field('delete','boolean'))
btn = form.element("input",_type="submit")
btn["_onclick"] = "return confirm('Are you sure?');"
|
|
|
|
|
|
|
|
|
|
|
| Support this site: |
we are developing a brand new website
to be the web2py community network
you can help us with a donation.
Or Joining our development team.
|
|
| Announce here: |
|
You can put your ad here and support us by the price of a "banana" contact-us
|
|
| Our supporters: |
|
|
|
.playincard....
ross.peoples...
frank
abhishekgupt...