Skip to content

Instantly share code, notes, and snippets.

@sankaran1984
Created February 23, 2017 06:51
Show Gist options
  • Save sankaran1984/2e7e23ec5c217d0ad32dfacacdad647a to your computer and use it in GitHub Desktop.
Save sankaran1984/2e7e23ec5c217d0ad32dfacacdad647a to your computer and use it in GitHub Desktop.
visualforce - Beyond Basics
<apex:page standardController="Opportunity">
<style>
.ReqHelpText {
display : inline-block;
width : 3px;
background-color : #c00;
}
</style>
<apex:form>
<apex:pageblock >
<apex:pageBlockSection collapsible="false" showHeader="true" title="Opportunity Section">
<apex:facet name="header">
<apex:outputPanel>
<apex:outputPanel styleClass="ReqHelpText">&nbsp;</apex:outputPanel>
<apex:outputText value="Fill Required Fields"/>
</apex:outputPanel>
</apex:facet>
<apex:inputField value="{!Opportunity.Name}"/>
</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