function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
StephenYS10000StephenYS10000 

custom button for New contact

I have create a custom object (child= that is linked to the Account  (master)

 

I want to create a custom button on the custom object that will allow one to create a new contact.

 

Does anybody know how I should create the url behind this button?

 

Thanks

 

Stephen

shillyershillyer

Try this:

 

 

/{!$ObjectType.Contact}/e?retURL=/{!CustomObject__c.Id}

 

Hope that helps,

Sati

StephenYS10000StephenYS10000

Two more questions on this.

 

It allows me to create a custom link using this method.

 

How would I use it as a Button rather than a link. How automatically insert the AccountID when user clicks the button?

 

Thanks

 

Stephen