},
Once the JavaScript method “<namespace>.OnAttributeChange_ParentCustomer” is hooked up to the OnChange event of the “Parent Customer” lookup on the contact record, when you set the “Parent Customer” field to an existing account record, you’ll first see an alert asking the user if the account’s address should be copied to the current contact record.
Selecting “OK” will copy the “Sweet Fruit Ltd” account address to Thomas Johnson’s contact record.
If I were to go and delete the “Parent Customer” field on the contact record, I now see the following message:
Clicking on “OK” in the message will delete the address information from Thomas Johnson’s contact record.
And we are done!