testFunc = function(){ if(Xrm.Page.getAttribute("name").getValue()) { Xrm.Page.getAttribute("name").setValue(null); Xrm.Utility.alertDialog("Поле 'Name' пустое"); } }