I don't know why, but the help text and the helptextimage does not appear.

    <apex:pageBlockSectionItem helpText="{!$ObjectType.Opportunity.Fields.StageName.inlineHelpText}">
         <apex:outputLabel value="{!$ObjectType.Opportunity.Fields.StageName.label}" />
         <apex:inputField value="{!oppString.StageName}" />

Any ideas?


Make sure ShowHeader="true" in your page definition, as mentioned in this forum post: https://developer.salesforce.com/forums/?id=906F000000097KUIAY

This is working in my dev org:

<apex:pageBlockSection title="Sample Section">
<apex:pageBlockSectionItem helpText="{!$ObjectType.Opportunity.fields.Amount.inlineHelpText}">
             <apex:inputField value="{!Opportunity.Amount}" />
| improve this answer | |
  • 1
    Also make sure you've obviously SET help text for the field ;-) – Adam Michael Daw Sep 22 '15 at 21:24
  • The problem was the showheader attribute, but I don't like the header on this visualforce page. Can I show the helptext without the showheader = true attribute? – peXeq Sep 23 '15 at 6:15
  • If you want to do that, you will need to manually add the helpText image, since it won't inherit the style. This forum conversation covers that: developer.salesforce.com/forums?id=906F00000008mXYIAY – Adam Michael Daw Sep 23 '15 at 16:57

This is workaround for this.

<span class="helpButton" id="stagename-_help">
                    <apex:outputLabel value="{!$ObjectType.Opportunity.Fields.StageName.label}" />
                    <img id= "stagehelpImg" class="helpOrb" title="" alt="" src="/s.gif"/>
                        sfdcPage.setHelp('stagename', '{!$ObjectType.Opportunity.fields.StageName.inlineHelpText}');
                         var isIE = (navigator.appName.indexOf("Microsoft") != -1);
                         var isIE7 = (navigator.appVersion.indexOf('MSIE 7.')==-1) ? false : true;
                         var helpImg = document.getElementById('stagehelpImg');
                            helpImg.style.marginRight = "6px";
                         else if(isIE)
                          helpImg.style.marginRight = "0px";
                          helpImg.style.marginRight = "3px";                         

            </span> <apex:inputField value="{!oppString.StageName}"/>

So the basic idea is we need to wrap the label with custom javascript and html which generate same layout.

Some points we consider here

  1. Span id referring img tag attribute id.
  2. sfdcPage.setHelp function refer span id but only first part of -
  3. This code has some layout issues with IE7 so you may need to set margin as per your field.
| improve this answer | |
  • I'm not sure that this is the case. A number of people seem to have been able to do it? – Adam Michael Daw Sep 22 '15 at 21:14
  • @AdamMichaelDaw this can be a solution for this problem if your answer doesn't work. we can't completely deny this answer. What I suggested is a workaround. – Himanshu Sep 22 '15 at 21:22
  • fair enough, downvote removed. But I feel it overcomplicates the issue if it's unnecessary. – Adam Michael Daw Sep 22 '15 at 21:23
  • I tested first with showheader="true" in vf page and it didn't work. did you tried that? – Himanshu Sep 22 '15 at 21:27
  • Of course. And it is working in my dev org. – Adam Michael Daw Sep 22 '15 at 21:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.