I've created a button that prompts the user if they want to save changes. The function for the alert doesn't return anything, so if you click cancel, it just goes back to the form. If you click ok, it updates the table, and redirects to another page. I tried the function sc_exit(c), but this doesn't seem to do what I want. Instead of all this, is there any default button I could use, or something else to do this instead of writing my own code?
No announcement yet.
Can you make a form prompt the user to save changes when they exit?