+ Start a Discussion
Sathyapriya VSathyapriya V 

formula field to open a tab inside console

Hi, I'm trying to change the below formula field to open in both console and standard page.currently if I click the link from console it is opening outside of the console. I want this to open within the console.

Existing formula which is working:
HYPERLINK("/500/e?RecordType=012F0000000yFNi&cas4="
& Owner__r.FirstName & "%20" & Owner__r.LastName & "&cas4_lkid=" & Owner__r.Id & "&cas8=N/A" 
& "&CF00NA00000070W35=" & Vehicle__r.Name & "&CF00NA00000070W35_lkid=" & Vehicle__r.Id 
&"&CF00NF0000008ODHT=" & Owner__r.Servicing_Dealer__r.Name & "&CF00NF0000008ODHT_lkid=" 
&Owner__r.Servicing_Dealer__r.Id & "&00NF0000008NeI5=" & Vehicle_Make__c 
& "&00NF0000008NeKU=" &TEXT(Owner__r.Vehicles_Owned__c) , "New VCS Case with Vehicle" )

Modified one 
HYPERLINK("javascript:if(typeof(srcUp)=='function') {srcSelf('/500/e?RecordType=012F0000000yFNi&cas4=" & Owner__r.FirstName & '%20' & Owner__r.LastName & '&cas4_lkid=' & Owner__r.Id & '&cas8=N/A' 
& '&CF00NA00000070W35=' & Vehicle__r.Name & '&CF00NA00000070W35_lkid=' & Vehicle__r.Id 
&'&CF00NF0000008ODHT=' & Owner__r.Servicing_Dealer__r.Name & '&CF00NF0000008ODHT_lkid=' 
&Owner__r.Servicing_Dealer__r.Id & '&00NF0000008NeI5=' & Vehicle_Make__c 
& '&00NF0000008NeKU=' &TEXT(Owner__r.Vehicles_Owned__c) "');} "+ " else {window.location.href='/" & Id & "'}" 
,"New VCS Case with Vehicle" 
, "_Parent" ) 

But I'm getting syntax error with the above one. can Someone please help me on this.
I followed below format.
HYPERLINK("javascript:if(typeof(srcUp)=='function') {srcUp('/" & Id &"');}" + " else {window.open('/"& Id &"')}", "View Member in Console", "_blank" )

Thanks.
gamungamun
Hello, have you tried using "VFLINK",'_self' within the first formula? With it the formula output becomes target="_self" and should open within the console. By default if you don't specify it uses target="_blank"