I have a simple validation that I need to perform on the form where it forces the user to have a minimum amount of character in a field, I have the below code as follows, but it does not work, I tried it on load and on save event but no luck, please assist.

```
function TemsAndCondtitionsValidation()
{
 var TermsandCon = Xrm.Page.getAttribute("new_termsconditions").getValue();
 if(TermsandCon.value.length < 140)
  {
    Xrm.Utility.alertDialog("The length of characters entered are less than the minimum requirement of 140 characters");
  }

}

```