Skip to content

Instantly share code, notes, and snippets.

@sankaran1984
Created February 23, 2017 08:26
Show Gist options
  • Save sankaran1984/5346073d4048660548d91caf5566687a to your computer and use it in GitHub Desktop.
Save sankaran1984/5346073d4048660548d91caf5566687a to your computer and use it in GitHub Desktop.
Visualforce - Beyond Basics
<apex:page standardController="Opportunity" recordSetVar="Opps">
<style>
.ReqHelpText {
display : inline-block;
width : 3px;
background-color : #c00;
}
</style>
<apex:sectionHeader title="Opportunities"/>
<apex:form>
<apex:pageBlock>
<apex:pageBlockTable value="{!Opps}" var="opp">
<apex:column>
<apex:inputField value="{!Opp.Name}"/>
<apex:facet name="header">
<apex:outputPanel>
<apex:outputText value="Opportunity Name - "/>
<apex:outputText value="&nbsp;" escape="false" styleClass="ReqHelpText"/>
<apex:outputText value=" It is a Required Field"/>
</apex:outputPanel>
</apex:facet>
</apex:column>
<apex:column value="{!Opp.StageName}"/>
<apex:column value="{!Opp.IsClosed}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment