Saturday, March 26, 2011

How to show help text on Visualforce Page?

Just came across this so thought of sharing it

When we use or tag in visualforce page then the help text comes automatically but when you are using or then use the following to get the help text :

<apex:pageBlockSectionItem helpText="{!$ObjectType.objectName__c.Fields.fieldName__C.inlineHelpText}" >
<apex:outputLabel> FieldName </apex:outputLabel>
<apex:inputText> FieldName__c </apex:inputText>