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
VamsiVamsi 

how to replicate the look and feel of change owner to custom lookup field on a custom object

Hi All,

I have a requirement to bring up the same look and feel for a custom look-up field (Faculity) (lookup to user object) similar to record owner change. I mean, we would like to have a similar page opened like record owner change, when a user clicks on the Faculity custom look-up field instead of standard user look-up page. Also the Send notificaion email button should send an email to faculity if its marked true.

record owner change​ page 
User-added image
We would like to have above page opened, when an user clicks on the Faculity look-up field .
User-added image

Any thoughts would be highly appreciated...!!!

Thanks in advance ...!!!
Dilip_VDilip_V
Hi Vamsi,

Like this.Well it is not exactly like that.But close to.
<apex:outputLabel styleClass="label">Owner: </apex:outputLabel>
            <apex:outputText value="{!Account.Owner}"/>&nbsp;
            <apex:commandLink action="{!ChangeOwner}" value="change" immediate="true"/>
Style class:
.label{
            margin-right:10px;
            font-weight:bold;
        }

Let us know if you have any issues.

Mark it as best answer if it works.

THanks.