+ Start a Discussion
ritikaritika 

Navigate from Contact to account on click of a button

hi

 

i want to make a button on contact , on click of that button i want to navigate to detail page of the related account.

 

Has anybody worked on similar functionality , please let me know.

 

Thanks in advance

Ritika

Best Answer chosen by Admin (Salesforce Developers) 
James_AdapxJames_Adapx
Isnt the account name field on the contact a link to the account detail page?

All Answers

Cool_DevloperCool_Devloper

Hi Ritika,

 

You can write an On-Click Javascript or on S-Control which will be executed on the Button click.

 

You can specify a re-direct link where the related account ID will be specified, so that you are re-directed to the appropriate page.

 

Cool_D

shillyershillyer

Hi Ritika,

 

Why do you need this button? There is already a link on the Contact that takes you directly to the Account detail page.

 

If you want a custom button, make it a URL with the following syntax:

 

/{!Account.Id}

 

But again, I think this is redundant to the existing link, unless I'm missing something.

 

Hope that helps,

Sati

ritikaritika

thanks for your reply .

 

Can you provide me with a sample code with similar s-control, since i am new to s-control.

 

Regards

 Ritika

James_AdapxJames_Adapx
Isnt the account name field on the contact a link to the account detail page?
This was selected as the best answer