Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
VisualForce Schema Field Label
<apex:page standardController="Account">
<apex:form >
<!-- both inputFields below write to an Account field named Demo_Field__c -->
<apex:pageBlock >
<apex:pageBlockSection title="Developer 1 below used a static text to talk about the field label" columns="2">
I am talking about a field named "Demo Field"!
</apex:pageBlockSection>
<apex:pageBlockSection title="Developer 2 below used a schema variable to talk about the field label" columns="2">
I am talking about a field named "{!$ObjectType.Account.fields.Demo_Field__c.Label}"!
</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