You need to sign in to do that
Don't have an account?
Tiwari Vedant
"_self" in hyperlink formula field in lightning console opening link in new sub tab not overriding primary subtab
_self is opening new subtab in lightning console. I dont want to open link in new subtab. It should override primary subtab. The formula field is-
(" [" &
HYPERLINK("/apex/Sc_UpdateCustomerEnvironment_Update?action=Select&CaseNumid="&Id,"Select", "_self") & "]" &
" [" & HYPERLINK("/apex/Sc_UpdateCustomerEnvironment_Update?action=View&CaseNumid="&Id&"&EnvId="&CustomerEnvironment__c,"View Selected", "_self") & "]" &
" [" & HYPERLINK("/apex/Sc_UpdateCustomerEnvironment_Update?action=Edit&CaseNumid="&Id&"&EnvId="&CustomerEnvironment__c, "Edit Selected", "_self") & "]" &" [" &
HYPERLINK("/apex/Sc_UpdateCustomerEnvironment_Update?action=New&CaseNumid="&Id,"New Environment", "_self") & "]")
It is working perfect in classic console.
(" [" &
HYPERLINK("/apex/Sc_UpdateCustomerEnvironment_Update?action=Select&CaseNumid="&Id,"Select", "_self") & "]" &
" [" & HYPERLINK("/apex/Sc_UpdateCustomerEnvironment_Update?action=View&CaseNumid="&Id&"&EnvId="&CustomerEnvironment__c,"View Selected", "_self") & "]" &
" [" & HYPERLINK("/apex/Sc_UpdateCustomerEnvironment_Update?action=Edit&CaseNumid="&Id&"&EnvId="&CustomerEnvironment__c, "Edit Selected", "_self") & "]" &" [" &
HYPERLINK("/apex/Sc_UpdateCustomerEnvironment_Update?action=New&CaseNumid="&Id,"New Environment", "_self") & "]")
It is working perfect in classic console.
This is a known issue in salesforce lightning before.It is fixed in winter '19 release.
https://success.salesforce.com/issues_view?id=a1p3A0000018PdwQAE&title=hyperlink-in-formula-field-doesn-t-respect-the-target-attribute-in-lightning
https://releasenotes.docs.salesforce.com/en-us/winter19/release-notes/rn_lex_honor_target_value_formula_fields.htm
Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.
Thanks and Regards
I was looking for functionality which will override same subtab as in classic console. But unfortunately its not available.