Hi We are using CRM2013 onpremises and i want cancel save if some attribute value is null while creating form in service appointment entity , so have used preventDefault method to cancel save ,however same is not working for service appointment and same code working fine rest of entities .Do we have any any limitation for service appointment .
following is my sample snippet .
function preventSave(context){
var loc = Xrm.Page.getAttribute("location").getValue();
if(loc==null){
context.getEventArgs().preventDefault();
}
}
if i used preventDefault for other entities then it is stop from saving form . however for service appointment it is saving records rather canceling save event, Any idea on this behavious ???
*This post is locked for comments
I have the same question (0)