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.
4. Save your changes and publish it. Have fun!!
Reference:- Redirect URL when user clicks Cancel Button