what is the error in my code? I want to empty the "city" field if the "region" field is empty
function emptyregion()
{
var region=Xrm.Page.getAttribute("new_region").getValue();
if (region == null)
{
Xrm.Page.getAttribute("new_city").setValue(null);
}
}
*This post is locked for comments