}
Note that as this function exists inside a namespace which I have not shown here, to hook this method up to the “OnChange” event of “Parent Customer” field on the contact record, you will need to specify the full name of the method E.g. “<Your namespace>.OnAttributeChange_ParentCustomer”.
The messages asking the user if they wish to copy/delete the address information are displayed via the “windows.confirm” method. Because this is a blocking method, this same JavaScript function will NOT work for forms viewed on CRM for Tablet (see the CRM SDK for more detail).
If “Parent Customer” is blank and the user chooses to delete the address information from the contact record, the function calls a separate method named “UserConfirmsToDeleteAddress()”.
If “Parent Customer” contains an account record, the method “UserConfirmsToCopyAddress( accountId )” is called, with the account Id Guid as the parameter of this method.
If yes to delete address, delete address information from contact record.
The JavaScript method for “UserConfirmsToDeleteAddress” looks like this:
UserConfirmsToDeleteAddress: function(){
endpoint security encryption endpoint security cloudTAGS
CATEGORIES