preventDefaultOnError (Client API reference)
Cancels the save operation if the event handler has a script error, returns a rejected promise for an async event handler or the operation times out.
Note
This API is not available for Dynamics 365 Customer Engagement on-premise deployments. More information: Client APIs not supported in Customer Engagement (on-premises)
Syntax
executionContext.getEventArgs().preventDefaultOnError();
Related articles
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for