Auto populate Parent Owner in child object User lookup field
Example
please have the BDD - owner Field, on the contract, auto populate with the Opportunity Owner when the contract is created?
Solution:-
There is custom button called New Contract, We need to do it with URL hacking
CF00NG000000F7Cge={!JSINHTMLENCODE(Opportunity.OwnerId)}
&CF00NG000000F7Cge_lkid={!Opportunity.OwnerId}
&CF00NG000000F7Cge_lkid={!Opportunity.OwnerId}
Here CF00NG000000F7Cge is BDD - owner Field id, you have to take it from Inspect Element, you will get it when you right click on the field.
JSINHTMLENCODE is mandatory to get the Look-up fields