I have encountered an unexpected error. The problem is that the code we used to restrict saving via script is no more working in Appointment entity post wave 2 update it seems. Even in trial I faced same issue only for Appointment entity. The code still work in classic web forms & even in other OOB or custom entities too.
Form Customization:
Handler:
//Functoin to call on save
function onSave (executionContext) {
//Local variables
var functionName = "onSave";
var saveEventArgs = null;
try {
//Get save event arguments
saveEventArgs = executionContext.getEventArgs();
//Prevent Save
saveEventArgs.preventDefault();
}
catch (ex) {
Appointment_ShowAlertDialog.throwError(functionName, ex.message);
}
}