You need to sign in to do that
Don't have an account?

Custom button to open Custom object by Page
Hi..
I am kindoff confused with this.
Any help please.....!!!!!
I have a req where I need to create a custom button on standard object.Lets suppose it as account.
I have a custom object called Candidate__c which has account look up.
I have to create a custom button on Account..which when clicked,opens candidate__c edit page with account data pre populated.
I created a VF page but not able to access on account button creation.
I also set standardcontroller Please help..Any sample snippet...I need this ASAP!!!
Thanks
I dont think you will need visualforce page here to create a button for populating the edit page of the cadidate...
1. Create a button of type Detail page button, content source = URL, Behaviour=Display in existing window without sidebar or header.
2. Add something like..
/a0G/e?CF00NE0000004opCZ={!Account.Name}&CF00NE0000004opCZ_lkid={!Account.Id}&00NE0000004opCe={!Account.Name}
a0G -> candidate object prefix,
e -> edit mode
CF00NE0000004opCZ={!Account.Name}&CF00NE0000004opCZ_lkid={!Account.Id} -> to populate lookup field if you want to..
for more information follow this link..
http://raydehler.com/cloud/clod/salesforce-url-hacking-to-prepopulate-fields-on-a-standard-page-layout.html
http://threeheadsonapike.wordpress.com/2013/02/11/salesforce-url-hacking-prepopulating-fields/
Try this..may be it helps
http://force201.wordpress.com/2012/01/22/hack-to-find-field-ids-allows-a-default-ui-new-page-to-be-pre-populated/