+ 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