title: CRM 2015 Javascript, prevent record form from SAVE AND CLOSE
body: <p>I need to develop a custom function using JavaScript for CRM 2015. What I would like to achieve is when a user hits 'Save and Close' button, it prevents record form from saving and close if the validation is not passed.</p>
  
  <p>I googled it and tried <code>eventObj.getEventArgs().preventDefault(); return false;</code> which most people recommended. It does prevent form from saving, but the form still closed. The reason is that 'preventDefault canceled the save operation, but all remaining handlers for the event will still be executed'.</p>
  
  <p>Is there a way to cancel remaining event handler, and prevent form from both <strong>SAVE</strong> and <strong>CLOSE</strong>?</p>