overriding existing salesforce page with your own page is one of the advantages offered by salesforce.com. In this article i will demonstrate that how we can override existing Contact page with our custom contact page.
Go to Set up | Develop | Pages and create new Visual force page with below code.
<apex:page standardController="Contact" tabStyle="Lead"> <apex:pageBlock title="My Contact Details"> <p>Hello {!contact.FirstName}</p><br> <i>Developed by : <b>Jitendra Zaa </b></i></br> <br> <i>This is the customPage developed</i></br> <apex:form > <apex:inputField value="{!contact.addit__c}"/> </apex:form> </apex:pageBlock> <apex:detail relatedList="false" /> </apex:page>
The above code will only display one textbox (Custom textbox field created by me).
Now go to Set Up | App Set Up | Contacts | Buttons And Links
Edit “View” Button and select your page as shown in below image.
When you will go to contact page, following output will be visible.
As you can see, we have changed the default User interface of the Contact Page.
For any suggestion please leave your valuable comments.
Leave a Reply to vivekCancel reply