function MakeEmpty(field1,field2)
{
var firstfield=Xrm.Page.data.entity.attributes.get(field1);
if(firstfield!=null)
{
var firstfieldvalue=firstfield.getValue();
if(firstfieldvalue!=null)
{
var secondfield=Xrm.Page.data.entity.attributes.get(field2);
if(secondfield!=null)
{
var secondfieldvalue=secondfield.setValue(null);
}
}
}
}
Field1-Current Field
Field2-Field to be empty
No comments:
Post a Comment