Create a new Javascript file preventAutoSave.js with the following method.
function preventAutoSave(econtext)
{
var eventArgs = econtext.getEventArgs();
if (eventArgs.getSaveMode() == 70)
{
eventArgs.preventDefault();
}
}
Other important values of Save Mode options are given below (Please refer CRM 2013 SDK Documentation for complete list)
Event Mode | Value |
Save
|
1
|
Save And Close
|
2
|
Save and New
|
59
|
Save as Completed
|
58
|
Auto Save
|
70
|
No comments:
Post a Comment