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
RichardR1RichardR1 

Reference a Visualforce page in a hyperlink

I made a tab for my visualforce page just so I can get it's URL and reference it in a hyperlink in a formula field. Unfortunately since it is a tab, the page moves away from the originating page to the VF tab. How can I reference only the VF page instead of the tab?
Best Answer chosen by RichardR1
AnudeepAnudeep (Salesforce Developers) 
Hi Richard, 

Have you tried like this?
HYPERLINK("/apex/VF_TEST", "VFLINK",'_self')

Reference: https://help.salesforce.com/articleView?id=tips_for_using_hyperlink_formula_fields.htm&type=5

​​​​​​​Anudeep

All Answers

AnudeepAnudeep (Salesforce Developers) 
Hi Richard, 

Have you tried like this?
HYPERLINK("/apex/VF_TEST", "VFLINK",'_self')

Reference: https://help.salesforce.com/articleView?id=tips_for_using_hyperlink_formula_fields.htm&type=5

​​​​​​​Anudeep
This was selected as the best answer
RichardR1RichardR1
Anudeep, thanks, but how do I set the window size/behavior?
aostv appaostv app
Thanks for the best post and i love it.
aos tv (http://www.aostv.xyz/)