function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Krishna KatveKrishna Katve 

Visualforce helptext

Hi,

Help text is not getting displayed on visualforce page.

<apex:pageblockSectionItem HelpText="{!$ObjectType.Opportunity.fields.Unified_Probability__c.InlineHelpText}">
    <apex:outputLabel value="Unified Probability"/>
    <apex:pageBlockSectionItem>
    <apex:inputField value="{!Opportunity.Unified_Probability__c}" id="unifiedProbability" label="Unified Probability"/>
    </apex:pageBlockSectionItem>
</apex:pageblockSectionItem>

Pleasae Advise.

Thanks
Krishna
William TranWilliam Tran
Try this:

Thx
 
<apex:pageblockSectionItem HelpText="{!$ObjectType.Opportunity.fields.Unified_Probability__c.InlineHelpText}">
    <apex:outputLabel value="Unified Probability"/>
    <apex:inputField value="{!Opportunity.Unified_Probability__c}" id="unifiedProbability" label="Unified Probability"/>
</apex:pageblockSectionItem>


 
Amit Chaudhary 8Amit Chaudhary 8
Example 1:-
Please check below post. I hope that wll help u
http://salesforce.stackexchange.com/questions/65683/how-to-add-field-help-text-in-visualforce-page
 
<apex:pageBlockSectionItem helpText="{!$ObjectType.YOUR_OBJECT.fields.YOUR_FIELD.InlineHelpText}">
    <apex:outputField value="{!REF_TO_OBJ_FROM_CONTROLLER.YOUR_FIELD}"/>
</apex:pageBlockSectionItem>

Example 2:-http://salesforce.stackexchange.com/questions/53192/using-help-text-in-visualforce
<apex:pageBlock >
   <apex:pageBlockSection >
         <apex:pageBlockSectionItem >
             <apex:outputLabel value="{!$ObjectType.Survey__c.Fields.Impact_of_visit__c.InlineHelpText}" />
             <apex:inputField value="{!decision.Impact_of_visit__c}" />
         </apex:pageBlockSectionItem>
  </apex:pageBlockSection>
</apex:pageBlock>


Example 3:- http://salesforce.stackexchange.com/questions/21412/help-text-not-appearing-when-using-apexoutputfield-with-a-custom-label
<apex:pageBlockSectionItem helpText="{!$ObjectType.Account.fields.Street__c.InlineHelpText}">
    <apex:outputLabel value="My Label"/>
    <apex:outputField value="{!a.Street__c}"/>
</apex:pageBlockSectionItem>

And you code should be
<apex:pageBlockSectionItem helpText="{!$ObjectType.Opportunity.fields.Unified_Probability__c.InlineHelpText}">
	<apex:outputLabel value="Unified Probability"/>
	 <apex:inputField value="{!Opportunity.Unified_Probability__c}" id="unifiedProbability" label="Unified Probability"/>
</apex:pageBlockSectionItem>
Please let us know if this will help you

Thanks
Amit Chaudhary
ManojjenaManojjena
Hi Krishna,

Try with below code  it will work ,It worked for me in my case .
 
<apex:pageBlock mode="maindetail" id="pgblk">
		<apex:pageBlockSection  id="pgblksec">
			<apex:inputField value="{!Opportunity.Unified_Probability__c}" id="unifiedProbability" />
		</apex:pageBlockSection>
	</apex:pageBlock>

Let me know if it helps !
Thanks 
Manoj
Krishna KatveKrishna Katve
Hi All,

Thanks the replies, But none of them is working for me, See below

<apex:pageblockSectionItem HelpText="{!$ObjectType.Opportunity.fields.Unified_Probability__c.InlineHelpText}">
    <apex:outputLabel value="Unified Probability"/>
    <apex:inputField value="{!Opportunity.Unified_Probability__c}" id="unifiedProbability" label="Unified Probability"/>
</apex:pageblockSectionItem>

<apex:pageBlockSectionItem>
    <apex:inputField value="{!Opportunity.Unified_Probability__c}" id="unifiedProbability" />
</apex:pageBlockSectionItem>

<apex:pageblockSectionItem HelpText="{!$ObjectType.Opportunity.fields.Unified_Funding_Status__c.InlineHelpText}" Id="unifiedFSItem">
    <apex:outputLabel value="Unified Funding Status"/>
    <apex:inputField value="{!Opportunity.Unified_Funding_Status__c}" id="unifiedFundingStatus"/>
</apex:pageBlockSectionItem>

User-added image

I can just see the helptext image, But if i hover on it i cant see anything.


Thanks
Krishna
ManojjenaManojjena
Hi Krishna,

Currently I have implemented in my project and is working fine for me ,if you will add sectionItem will not work ,check once as a poc and then implement .

let me know if it helps .
Krishna KatveKrishna Katve
HI Manoj,

I tried with your way, But its not working.

I can see helptext is coming up by inspecting element, But some how it is not getting displayed on hover.


Thanks
Krishna
ManojjenaManojjena
Hi Krishna,

For me it is working as expected,Is it possible to post your code Snnipet  for which I can help you .
Else if possible try to add as a inline VF page in Opportunity and check it will work .
 
<apex:page standardController="Opportunity" id="pg">
		<apex:form id="frm">
			<apex:pageBlock mode="maindetail" id="pgblk">
				<apex:pageBlockSection columns="1" id="pgblksec">
					<apex:outputField value="{!Opportunity.Unified_Probability__c}" id="optfld"/>
				</apex:pageBlockSection>
		</apex:pageBlock>
		</apex:form>
	</apex:page>

 
ManojjenaManojjena
Hi Krishna,

For testing you can save the above code and follow the steps below .
Create a url like below and paste in your Org URl .
 https://c.cs15.visual.force.com/apex/YorVFPageName?id=RecId
    YourVfPageName  Replacewith the pagename which you have saved .
    RecId replace with any opportunity Id .
Let me know if it helps .