I want auto populate contact and account fields when ever we create Opportunity record from contacts related list. But below was not giving as expected results...please anyone make correct.
PageReference pr = new PageReference('/apex/OppVfPage?CF00N40000002fEB2={!Contact.Name}&CF00N40000002fEB2_lkid={!Contact.Id}&conid={!Contact.Id}');
after page opens the contact or account fields were not populated and the URL displays like...
https://c.cs15.visual.force.com/apex/OppVfPage?CF00N40000002fEB2=%7B%21Contact.Name%7D%3FCF00N40000002fEB2_lkid%3D%7B%21Contact.Id%7D%3Fconid%3D%7B%21Contact.Id%7D