locked
executionObj.getEventArgs().preventDefault() not working on "Save and close" RRS feed

  • Question

  • Hi 

    I am doing some validation in onSave event. if validation getting failed then using executionObj.getEventArgs().preventDefault()  to stop saving. it working fine when i click save button. But If i click save and close its prevent saving process but it trying to close the form. it asking "Your changes have not been saved. To stay on the page so that you can save your changes, click Cancel." How can i stop this message ? Can someone please help me to  fix ?

    Thanks & Regards,

    ThangaKumar.S

    Wednesday, March 18, 2015 10:33 AM

All replies