Hello,
Using the following code with CRM 2013 SP1 the statuscode (5) is being ignored:
function FrmOnSave(context) {
if (context != null && context.getEventArgs() != null) {
var saveMode = context.getEventArgs().getSaveMode();
alert('SaveMode : ' + saveMode);
if (saveMode == "5") {
// Validation code
alert('Form is not valid');
}
}
}
The 'SaveMode' always returns 1.
Any help would be appreciated.
Duane