title: Validate field/attribute in CRM Dynamics forms using js
body: <p>I have a problem in validating attribute on a form in CRM dynamics.
  I added a JavaScript code that validate the attribute value based on my business rules.
  and added to 2 events, form on save and field on change,</p>
  
  <p>the question is:</p>
  
  <p>1- Is this the best way to validate on attribute?</p>
  
  <p>2- In case of using this way, how can i stop saving the form or passing it as valid ?</p>