Print this page

Embed Visualforce page in a page layout

Knowledge Article Number 000005105

To embed a Visualforce page into page layout, the Visualforce page should be using the standard controller tag referencing the same entity that will be used in the page layout . You can use or add this Visualforce page by modifying the page layout.


Visualforce page using the Standard Opportunity Controller


<apex:page standardController="Opportunity" tabStyle="Opportunity">
        <apex:pageBlockSection title="Opportunity Information">
            <apex:outputField value="{!}"/>
            <apex:outputField value="{!opportunity.amount}"/>
            <apex:outputField value="{!opportunity.closeDate}"/>

After this, this page should show in the Page Layout editor and can be embedded on a page layout for Opportunity.

promote demote