Dirty confirmation messages on a custom button
Hi All,
I have a custom button/link in a section like update. When I edit some fields in the form, and click on the button, I should be prompted with a Dirty warning pop-up like "You are about to discard your unsaved changes" with buttons Discard, Save and Cancel.. On click of Discard button, it should navigate to a different harness. I tried using Cancel action on my button, I am getting the dirty message pop-up but it is navigating me to the previous page.
But my requirement is not to go back to previous page but to go to a different harness.
Can somebody help me please?