You need to sign in to do that
Don't have an account?
Kent Lichty
How to display standard help text in custom VisualForce page
I am quite new to Force.com development, and I am struggling with an issue that I thought would be quite simple. I have a custom VisualForce page, and I want the help text bubble icon and text to be displayed on my page, but I cannot figure out how to do that. I have read the posts on this forum for that same question and have implemented what I think is the correct approach, but it still shows nothing. My VF code is like this:
<apex:pageBlockSectionItem HelpText="{!$ObjectType.BNTE_Build_Note__c.Fields.Work_Order_ID__c.InlineHelpText}">
<apex:outputLabel value="{!$ObjectType.BNTE_Build_Note__c.fields.Work_Order_ID__c.label}"/>
<apex:inputField value="{!BNTE_Build_Note__c.Work_Order_Id__c}"/>
</apex:pageBlockSectionItem>
My page is set to ShowHeader = "true".
Could anybody suggest what I could try to get this to work?
<apex:pageBlockSectionItem HelpText="{!$ObjectType.BNTE_Build_Note__c.Fields.Work_Order_ID__c.InlineHelpText}">
<apex:outputLabel value="{!$ObjectType.BNTE_Build_Note__c.fields.Work_Order_ID__c.label}"/>
<apex:inputField value="{!BNTE_Build_Note__c.Work_Order_Id__c}"/>
</apex:pageBlockSectionItem>
My page is set to ShowHeader = "true".
Could anybody suggest what I could try to get this to work?
Got your issue now, as it's known issue of Salesforce that help text is not visible. I have tried to sort out your requirement but there will be extra bit of development and code required.
So this is workaround.
Mark this answer as close, If it serves your purpose. So that it will be hepful for others.
Regards,
Santosh.
All Answers
Your usage is correct. Just ensure that you use the field name as described in the documentation helpText instead of 'HelpText'
You can also narrow this down by verifying if the following works Anudeep
If you are using <apex:inputField> it is not required to add any help text separately, just keep the field under this hierarchy :
<apex:form>, apex:pageBlock, apex:pageBlockSection, apex:inputField You can see the result in below image.
And the other way is adding help text manually like you are trying here also the pageblock hierachy matter:
Please adjust your code accordingly, it should work.
Mark this answer as close, If it serves your purpose. So that it will be hepful for others.
Regards,
Santosh.
Got your issue now, as it's known issue of Salesforce that help text is not visible. I have tried to sort out your requirement but there will be extra bit of development and code required.
So this is workaround.
Mark this answer as close, If it serves your purpose. So that it will be hepful for others.
Regards,
Santosh.
{!$ObjectType.BNTE_Build_Note__c.fields.Work_Order_Id__c.label} {!$ObjectType.BNTE_Build_Note__c.Fields.Work_Order_Id__c.InlineHelpText}