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
ExecbizExecbiz 

Formula to output a link

Is there a way for a formula to output a link?  For example, I have a custom object that has a lookup field to a Contact.  I would also like the record to display that Contact's account, ideally as a link to the account page, but without the user having to manually type in the account.  I have figured out how to get it to display the text of the account:

 

Formula:  Contact__r.Account.Name

 

But this doesn't display as a link.  Suggestions?

 

Thanks 

Best Answer chosen by Admin (Salesforce Developers) 
shillyershillyer

Try this:

 

 

Hyperlink("/"+Contact__r.AccountId , "Link to Account")

 

I'm using the ID instead to redirect to the Account record URL.

 

Hope that helps,

Sati

Message Edited by shillyer on 01-12-2010 08:32 AM

All Answers

shillyershillyer

Try this:

 

 

Hyperlink("/"+Contact__r.AccountId , "Link to Account")

 

I'm using the ID instead to redirect to the Account record URL.

 

Hope that helps,

Sati

Message Edited by shillyer on 01-12-2010 08:32 AM
This was selected as the best answer
ExecbizExecbiz
Perfect, thanks