1

I have a VF page which display inputfields from a custom setting. I am using the "Help Text" in the field definition to display the help text.

Now i also need to show a checkbox which is used to run some javascript code when checked. I need to show help icon beside it.

Is there a way i can implement the help bubble from SF so that the look and feel is not different for this particular field only.

Thanks

<apex:pageBlockSectionItem id="pbsiMatch">
              <apex:outputLabel value="Match to Accounts"></apex:outputLabel>
              <apex:inputCheckbox value="{!useMatch}" id="chkmatch"/>
          </apex:pageBlockSectionItem>
2
  • Have you tried looking at the documentation for apex:pageBlockSectionItem?
    – BarCotter
    Commented Feb 27, 2015 at 11:05
  • Oh!! my bad.. i had been checking the documentation for apex:outputlabel. If you can put it as an answer then i can accept it
    – Prady
    Commented Feb 27, 2015 at 11:51

1 Answer 1

2

You can use the helpText attribute of apex:pageBlockSectionItem to add the help text in the same format that SalesForce does.

If you need to get the help text that is stored on the field on the SObject then you can use $ObjectType to do this. The example below will display the help text from the field Account.MyField__c

<apex:pageBlockSectionItem
        helpText="{!$ObjectType.Account.fields.MyField__c.InlineHelpText}">

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .