Created
November 24, 2018 19:35
-
-
Save melissajhansen/2bcc93e71947e5aae93463df04518714 to your computer and use it in GitHub Desktop.
Sample Visualforce Page with Standard Controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page standardController="Account"> | |
<apex:form> | |
<apex:pageBlock title="My Content" mode="edit"> | |
<apex:pageBlockButtons> | |
<apex:commandButton action="{!save}" value="Save"/> | |
</apex:pageBlockButtons> | |
<apex:pageBlockSection title="My Content Section" columns="2"> | |
<apex:inputField value="{!account.name}"/> | |
<apex:inputField value="{!account.site}"/> | |
<apex:inputField value="{!account.type}"/> | |
<apex:inputField value="{!account.accountNumber}"/> | |
</apex:pageBlockSection> | |
</apex:pageBlock> | |
</apex:form> | |
</apex:page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add lightningStylesheets="true" into the apex:page tag to see the style magically change (also makes the VF page taller outside of the default 200px.