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
nagasnagas 

creating a formula field

hi i want to create a formula field on an object which acts like a link so that when a user clicks on it , it should redirect to a visualforce page.

Can anyone give an example how it can be achieved.

Best Answer chosen by Admin (Salesforce Developers) 
b-Forceb-Force

You can useHYPERLINK Function in formula field

example

Create a Formula field with return type TEXT

formula=HYPERLINK('/apex/Mycss', 'Click here')

 

Mycss is apex Page

 

you can add some parameter in querystring

 

Hope this will work out for you

 

Thanks,

Bala

 

All Answers

b-Forceb-Force

You can useHYPERLINK Function in formula field

example

Create a Formula field with return type TEXT

formula=HYPERLINK('/apex/Mycss', 'Click here')

 

Mycss is apex Page

 

you can add some parameter in querystring

 

Hope this will work out for you

 

Thanks,

Bala

 

This was selected as the best answer
nagasnagas

thanks its working