What would be the best ways to return to current form when you press Cancel button? I was looking for the confirmation message on cancel button as well. After struggling to get perfect solution on this forum, I managed to find workaround below on this issue.
1. Disable existing/default Cancel button by adding below rule on the button.
2. Create a JavaScript button called "Cancel" and add JavaScript function name, "DoRedirect()" under Advanced -> Client click field
2. Place your new JavaScript button on existing Cancel button.
3. Select Form Settings -> Custom JavaScript -> add below code
|
4. Save your changes and publish it. Have fun!!
Reference:- Redirect URL when user clicks Cancel Button