Hello guys, I'm trying to add a button to a form and when clicked, I'd like 
for an action to be called that erases a record from the db.

I saw the butting addition can be done with form.add_button('Delete 
Record', URL('other_page'))

However, I am wondering how I can tie in an action instead of a url. Like a 
delete_record method or something. Also, is it possible to append a jQuery 
alert box to this button that asks the users if he/she is sure?

Thanks!

-- 



Reply via email to