+ Start a Discussion
StephenYS10000StephenYS10000 

Custom button for New contact

I have created a custom related object to the Account object.

 

My client wants custom button that will allow one to create a new Contact from the section.

 

Could someboby please advise me on how to do this?

 

Thanks

 

Stephen

shillyershillyer

I'm not sure I understand. You have a custom object that is a child to Account, so there's a new related list on the Account with your custom object. Now you want to add a custom button to that related list allowing you to create a new Contact? There should already be a related Contact list on the Account with a New Contact button, won't that suffice? Or am I missing something?

 

Best,

Sati

StephenYS10000StephenYS10000

Yes, you are right

 

My client's users don't want to move to a different section of the screen to add a new contact

shillyershillyer

Fair enough. Create a custom list button for your custom object, and add it to the related list on the Account page layout.

 

Try this URL:

 

/{!$ObjectType.Contact}/e?retURL=/{!Account.Id}&accid={!Account.Id}

 

 

Hope that helps,

Sati