+ Start a Discussion

pre-populate standard page with parent

Hi folks, 



We have a custom object which is a child to Account object with a master detail relation.


A visualforce page with Accounts standard contoller is extended to list all child records associated with each account.


A new button on above VF page opens standard create child record page. We have below code


<apex:outputLink value="{!URLFOR($Action.btr_stores__c.New)}


 The problem with above code Account Name is not being populated.


Is there a way to populated Account Name when user click  a new link from VF page?






<apex:outputLink value="{!URLFOR($Action.btr_stores__c.New)}?Account__c={!Account.id}"/>


Account__c is your field in the Btr_Stores__c object if it is not correct please make changes then try 


jd123, thanks for the response. sorry but this does not populate standard page with account name. any other suggestions?