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
Zoren DomingoZoren Domingo 

Salesforce Lightning Hyperlink

Hi, is there a way in lightning can I make a field a hyperlin that directs to the record URL?

This is the formula field, I'm thinking how to convert this in lightning.
HYPERLINK("https://adworks--dev2.lightning.force.com/lightning/r/Campaign_Scorecard__c/" 
& Id 
& "/view" 
,TEXT(Vendor_Measurement__c))
Raj VakatiRaj Vakati
You can use Lightning Experience Configuration Converter whihc will genrated the code for you 


Refer this link 

https://developer.salesforce.com/blogs/2018/06/convert-javascript-buttons-to-lightning-friendly-alternatives-with-the-lightning-experience-configuration-converter.html

https://lightning-configuration.salesforce.com/
Bhargavi TunuguntlaBhargavi Tunuguntla
Hi Zoren,

Please try the below:

HYPERLINK("https://adworks--dev2.lightning.force.com/lightning/r/Campaign_Scorecard__c/" +Id+"/view", TEXT(Vendor_Measurement__c), "_self")


This onclick redirects to the record in lightning page.

Hope this helps.

Thanks
Bhargavi.