preventDefault is not working when applying validations on lead Qualification. Try below code
function LeadQualificaitonValidation(Context)
{
if (Context != null && Context.getEventArgs() != null)
{
var eventArgs = econtext.getEventArgs();
if (eventArgs.getSaveMode() == 16) {
eventArgs.preventDefault();
}
}
}
Comments
Code correction function LeadQualificaitonValidation(econtext) { if (econtext!= null && econtext.getEventArgs() != null) { var eventArgs = econtext.getEventArgs(); if (eventArgs.getSaveMode() == 16) { eventArgs.preventDefault(); } } }
Category: Account, Contact, Calendar and Activity Management
Thanks for the feedback this product suggestion looks like it is a bug not a suggestion. We have made note of the issue, this item will be closed out as postponed and this is a bug not a feature. Please use the following link https://community.dynamics.com/crm/p/support.aspx to enter a support case if you would like to make sure to have the issue tracked more closely. Thanks for the feedback. Larry
Category: Account, Contact, Calendar and Activity Management