Skip to content

Instantly share code, notes, and snippets.

@ganmahmud
Created November 23, 2018 09:47
Show Gist options
  • Save ganmahmud/44b973042ccd152e2f3b6a0f0d2e3ca7 to your computer and use it in GitHub Desktop.
Save ganmahmud/44b973042ccd152e2f3b6a0f0d2e3ca7 to your computer and use it in GitHub Desktop.
Create a Visualforce page which displays a variety of output fields
<apex:page standardController="Opportunity">
<apex:pageBlock title="Opportunity Details">
<apex:pageBlockSection>
<apex:outputField value="{! Opportunity.Name }"/>
<apex:outputField value="{! Opportunity.Amount }"/>
<apex:outputField value="{! Opportunity.CloseDate }"/>
<apex:outputField value="{! Opportunity.Account.Name }"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
@papadave66
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment