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
Sai Prasad 51Sai Prasad 51 

Hyperlink field that should redirect to particular tab in contact record

Hi, need to cretare a hyperlink field in case object so that when we click on that field it should redirect to the particular subtab of the contact record page assosciated with that particular Case Record.
SubratSubrat (Salesforce Developers) 
Hello Sai ,

To create a hyperlink field in a Case object that redirects to a specific subtab in the associated Contact record, you can follow these steps:

1). Go to the Case object in Setup.

2.) Click on Fields & Relationships and then click on the New button to create a new custom field.

3).Choose the data type as Formula and give it a name.

4.)In the Formula Editor, you can use the HYPERLINK function to create a clickable link to the Contact record.

5.) The formula will look something like this:
 
HYPERLINK("/"+ Contact.Id + "/e?&tab=SUBTAB_NAME__c", "Link Text")
In this formula, replace "Contact" with the API name of the Contact lookup field on the Case object. Also, replace "SUBTAB_NAME__c" with the API name of the subtab you want to redirect to on the Contact record. Finally, replace "Link Text" with the text you want to display as the clickable link.

Help video -> https://www.youtube.com/watch?v=EJwkB6uqbxY

If this helps , please mark this as Best Answer.
Thank you.
Sai Prasad 51Sai Prasad 51
Hi Subrat,

This is not working it was redirectiong to contact record edit page.