On a custom object, I've managed to auto populate the custom object's name field to a default value using below custom vf page code:

<apex:page standardController="CustomObject__c" recordSetVar="CO"
    action="{!URLFOR($Action.CustomObject__c.New, null, ['Name'='Default Value'], true)}"  

Now in addition to the Name field I also want to auto populate a Lookup field(Parent record value) on the Custom object.

How can i achieve this without url hacking or without overriding standard layout with visualforce page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.