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
Priya BandiPriya Bandi 

How to open a custom VF tab in a new tab when clicked

Hello All,
    I have created a VF tab and attached a VF page to this custom VF tab. The VF page has Account as the Standard Controller. So now, as shown in the below attached screenshot, when the user clicks on the MyRelationships VF tab, the VF page should open in a new tab and it should not affect the current tab, I mean the current tab should remain in the same contacts tab. Is this  feasible? If so, please let me know.User-added image

Thank You for your time.
bouscalbouscal

Your link should be directly to the VF page.  From Setup go to Contacts > Buttons Links and Actions.

Click the New Button or Link button and provide the details.
Then place the button or link on the Contact page layout.

User-added image

Priya BandiPriya Bandi

Thank You for your response. But I am asking you about the MyRelationships custom VF tab. When a user clicks on this MyRelationships tab, it should be opened in a new tab, instead of overriding the existing opened tab, which is contacts tab here.
bouscalbouscal
I understand.  Why do you have a tab if you want it to open in a new window?
Priya BandiPriya Bandi
The users should be able to open this tab in the new browser tab, exactly same as open link in new tab.