When I add JavaScript on OnSave() event. the code is that
function customerid()
{
var freeze = Xrm.Page.data.entity.attributes.get("customerid").getValue();
Xrm.Page.getAttribute("new_customerid").setValue("freeze");
}
every time I open form I get this error
I done this code to accomplish my following requirement