Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Could not prevent save action for "Save and Close" command

$
0
0

Hi,

For javascript customization, when we decide to prevent user’s save action after some validations.

It works for “Save” button, but not for “Save and Close” button on create form.

It still continue to close:

SDK reference:

function preventSave(econtext) {

    var eventArgs = econtext.getEventArgs();

    eventArgs.preventDefault();

}


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>