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
sunil h 10sunil h 10 

Formula Field: Open HyperLink In new Tab Lightning

Hi Guys,

I have created hyperlink formula field in detail page, onclick of field should open link in new tab on lighning experience 

Formula Ex:
HYPERLINK("https://ap4.lightning.force.com/apex/KnowledgeArticleInternalApp", "Article","_blank")

Above Formula is Not opening in new tab instead opening in same lightning experience Tab, Any solution is highly appreciated 

Thanks in Advance
 
Raj VakatiRaj Vakati
Its know issue 


In salesforce classic when creating a new image hyperlink and setting the target to blank this will open the link in a new window. Same behaviour is expected in lightning but instead the new link is opened within the same window.

https://success.salesforce.com/issues_view?id=a1p3A0000008gChQAI
If you want in new tab .. write the custom code 
sunil h 10sunil h 10
Hi raj,

Thanks for reply,

This field is in Standard Knowledge Article object, we cannot create buttons and action, to call custom Code (OR) and create vf page and embed in standard page layout,

Any other solution to use custom code in knowledge article object to open hyperlink formula in new tab  

 
Adrian GatesAdrian Gates
Here is the sample Html code to open a hyperlink in new tab

<a href=(website url) target=_blank>Anchor txt</a>

Regards,
Adrian Gates
Sr. Web Developer - CloudDesktopOnline (https://www.clouddesktoponline.com)
Dhruba DebDhruba Deb
Hi All,

If You can Active the Critical Update "Lightning Experience Honors Target Values for Hyperlinks in Formula Fields" yours link will open in new window in Lightning.
Critical update for HYPERLINK