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
venkyyyvenkyyy 

Want to add a custom button/link beside the Phone field in detail page(see the screen short bellow).

Hi all, 

In user detail page there is a field called 'Phone' and i want to add a custom button/link Beside the Phone field not in the standard button and custom button location in pagelayout.

Please see the screen which i uploaded.
User-added image
Thanks in advance.
 
Pankaj MehraPankaj Mehra
Hi Venkyyy,

On detail page with the help of  formula field you can display a link with your phone number.

The formula field will contain following :

" ["& HYPERLINK("javascript:window.open('apex/AccountHierarchyPage?id="&Id&"','mywindowtitle','width=500,height=350,top=200,left=300')", "Open Hierarchy", '_self' )&"]"

In above example I am adding a link to the field that opens a popup window.

Hope this helps

 
venkyyyvenkyyy
Hi Pankaj, 
It was good and that is for new field, but i want to add to existed field in user detail page. 
For that i am not able add.

Explain me.
Pankaj MehraPankaj Mehra
Hi Venky,

You can create a visualforce page with standard controller of same object and then you can add that vf page in any section you want in detail layout of the page.

In the vf page you can add your button and field value.

Thanks