How to add help text or help bubble in Visualforce page?

Sample Code:

Visualforce page:

<apex:page sidebar="false" Controller="Sample" showHeader="true">
<apex:form >
<apex:pageBlock >
    <apex:pageBlockSection >
        <apex:pageBlockSectionItem helpText="Name of the Account" LabelTitle="Account Name">
            <apex:outputtext >Enter the Account Name</apex:outputtext>
            <apex:inputtext value="{!Name}" />
        </apex:pageBlockSectionItem>       
    </apex:pageBlockSection>
    <apex:pageBlockButtons >
        <apex:commandButton value="Save"/>
    </apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>


Output:


4 comments:

  1. In order to enable help text is it compulsory to make showheader="true"?
    if we make showheader="false" then help text icon disappears from vf page.
    Help for the same.

    ReplyDelete
    Replies
    1. As of now, yes.

      Check this site for more info

      https://success.salesforce.com/ideaView?id=08730000000KEjR

      Cheers!!!

      Delete
  2. It helped me a lot... Thank you.

    ReplyDelete