Hi
I am trying to clear two lookup field values when a new form is loaded.
I have used the following script:
function SetLookupsNull {
if (Xrm.Page.ui.getFormType() == 1) {
Xrm.Page.getAttribute(new_contactlookup).setValue(null);
Xrm.Page.getAttribute(new_patientlookup).setValue(null);
}
I receive an error 'Object not supported'
Would someone please assist?
Tony
Thanks