I will write a javascript code for name filed should not blank.But error message shown but record is saved.so please check below my code and give suggest where i will be do wrong?
function ValidateNamefield()
{
var name=Xrm.Page.getAttribute("sbl_branch_name").getValue();
if(name==null)
{
alert("Name filed should notbe blank");
}
else
{
Xrm.Page.getAttribute("sbl_branch_name").setValue(name);
}
}
*This post is locked for comments
I have the same question (0)