function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ken sfdc1Ken sfdc1 

Custom button for auto fill


am trying for an auto fill button but I see something is missing.
Lower registry object -- is a look up to account object 
Iam creating a custom button on Account while they navigate to lower registery new button to that object they want the primary address fields auto filled --- Address line 1, city,state,country etc.
Here is the tricky address is one more object which is master detail to account and there is no relation to Lower registry object.
So i want lower registry --> lookup to account --> master detail to Address object how to get the address from address object to lower registry.
!Address_vod__c.Address_line_2_vod__c is this right or Account__r.Address_vod__c.Address_line_2_vod__c?


https://cs8.salesforce.com/a2I/e?CF00NE0000004vDME={!Account.Name}&00NE0000004vDMF={!Address_vod__c.Name}&00NE0000004vDMG={!Address_vod__c.Address_line_2_vod__c}&00NE0000004vDMI={!Address_vod__c.City_vod__c}&00NE0000004vDMX={!Address_vod__c.State_vod__c}&00NE0000004vDMZ={!Address_vod__c.Zip_vod__c}