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
Timothy SmithTimothy Smith 

Edit Source Code of Record Page?

Opportunity -> Appointment__c -> Task

On the Task Object the request is to have the 'Related To' field which shows the Opportunity Name, to become a hyperlink to the Opportunity if the 'Related To' is an Opportunity Record.  Can this be done by editing the Task Layout in VSCode/Source Code, or am I forced to create a custom Lighting Component for one field change?  Thank you

User-added imageUser-added image

I have a request to change the value of the  'Related To' field into a hyperlink back to the specified record (Opportunity).

Best Answer chosen by Timothy Smith
VinayVinay (Salesforce Developers) 
Hi Timothy,

Check if you can use Hyperlink Formula Fields this cannot be done using VS code.

https://help.salesforce.com/articleView?id=sf.tips_for_using_hyperlink_formula_fields.htm&type=5

Thanks,

All Answers

VinayVinay (Salesforce Developers) 
Hi Timothy,

Check if you can use Hyperlink Formula Fields this cannot be done using VS code.

https://help.salesforce.com/articleView?id=sf.tips_for_using_hyperlink_formula_fields.htm&type=5

Thanks,
This was selected as the best answer
Timothy SmithTimothy Smith
Yes, I can use formula fields.  I'm looking at creating a custom field with 'Opportunity.name' and have that value as a hyperlink back to the Opportunity.  I know that I need a formula field and a hyperlink field.  How would that work, I cant figure that part out.