I have an article page where I need to do some custom validations in Edit mode(page layout). I am trying to cancel the save action using return false
but the page is still saved.
$('span[id="Ribbon.EditingTools.CPEditTab.EditAndCheckout.SaveEdit-Large"]').click(function(){
//validations
if(//validationsfail){
return false;
}
});