Friday, 21 June 2013

Java Script to stop a form From Saving

In some condition we need that form should not be allowed to save:

To stop the save event in Javascript all you need is this
event.returnValue = false;

 Method in CRM 2011 is the following one:
Xrm.Page.context.getEventArgs().preventDefault();

preventDefault : Cancels the save operation, but all remaining handlers for the event will still be executed.

No comments:

Post a Comment