Skip to content

Instantly share code, notes, and snippets.

@melissajhansen
Created November 24, 2018 19:35
Show Gist options
  • Save melissajhansen/2bcc93e71947e5aae93463df04518714 to your computer and use it in GitHub Desktop.
Save melissajhansen/2bcc93e71947e5aae93463df04518714 to your computer and use it in GitHub Desktop.
Sample Visualforce Page with Standard Controller
<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>
@nvankerk
Copy link

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.

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