You need to sign in to do that
Don't have an account?

Displaying help text in visualforce page
Hi Team, I want to display the help text in visualforce page but i tried the below code but i am getting so error message.
{!$ObjectType.Request__c.fields.Name__c.InlineHelpText} Please let me know why I am getting so many error message and please let me know the solution to display help text in visualforce page. Thanks in advance.
{!$ObjectType.Request__c.fields.Name__c.InlineHelpText} Please let me know why I am getting so many error message and please let me know the solution to display help text in visualforce page. Thanks in advance.
According to the docs, you have to have an inputfield that is a child of pageblock or pageblocksectionitem and the showheader attribute of the page must be set to true - does that reflect your markup?
<apex:pageblockSectionItem >
<apex:outputLabel value="{!$ObjectType.Request__c.fields.Name__c.label}" for="name">
<span style="font-size:x-small"><br>
{!$ObjectType.Request__c.fields.Name__c.InlineHelpText}
</apex:outputLabel>
<apex:inputField id="email" value="{!Request__c.Name__c}" onfocus="true" required="true"/>
</apex:pageblockSectionItem></br>
This is the code I wrote to display help text. Please let me know how to display help text in VF page.
Just to confirm are you getting this error while compiling the code or while hitting the page. Also if possible please provide the full error so we can understand better.
Meanwhile you can try this :
But as you said this is not working for you then you can refer this post :
http://boards.developerforce.com/t5/General-Development/Displaying-Standard-help-Text-on-Force-com-Site/td-p/312409
Shashikant provided some good tips, I prefer to provide you the link instead of writing the same thing again.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
I am getting error message when compiling itself.
Can you paste the error message here?
<apex:pageBlockSectionItem HelpText="{!$ObjectType.Request__c.fields.Name__c.inlineHelpText}">
{!$ObjectType.Request__c.fields.Name__c.label}
<apex:inputText value="{!Request__c.Name__c}"/>
</apex:pageBlockSectionItem>
I tried this code but now i am getting syntax error.
It would be really helpful if you could post the actual text of the error, otherwise we have to use your code in our dev orgs to see what happens.
Yes, please paste the error which is displayed when you complie the code.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
Hi ,
Just it is showing
" if i tried the above code.Otherthan this it is not showing any error message for the above code.
Probably there might be two reasons for this :
1) When we copy paste your code there are some characters included in the text which visualforce doesn't support those are also not visible here. Will be displayed when you copy it to notepade. So try copy code from here :
2) You are using Name__c, are you sure this is your custom field. If not then you can try this code :
Am pretty sure my first assumption will be the cause.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
ya you are correct.Now it is not showing any error but at the same time it is not displaying any help text.why it is not displaying any help text if i put the cursor near to that field.
Please help me in this.
Help text icon is not displaying or the text inside the help text icon is not displaying?
If the icon is not displaying then you should check -> Field is having a help text on object level or not.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
Help text and icon both are not displaying.Help text is displaying in standared page but not in visualforce page .
Please help me in this.
Please paste your complete visualforce code and let me know you are using this page on portal/sites or as internal user?
Thanks
Ankit Arora
Blog | Facebook | Blog Page
<apex:page standardController="Request__C" extensions="RequestCtrl" showHeader="false" sidebar="false" >
<apex:pagemessages />
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection title="INFORMATION" columns="2">
<apex:inputField value="{!Request__c.What_is_your_age__c}"/>
<apex:pageBlockSectionItem HelpText="{$ObjectType.Request__c.fields.Name__c.inlineHelpText}">
<apex:inputText value="{!Request__c.Name__c}"/>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
<apex:pageBlockSection columns="2">
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
I am using this one as site.
Hi Ankit,
It is not displaying help text because i used showheader="false" and if i change this one to true it will display the help text.As I have to display help text in public site i dont want showheader="true".
Is there any way so that even if showheader="false" it has to display help text.
As I want to display help text in public site i dont want to use Showheader="true" in Vf page.
Is there any way so that I can display the help text with help text icon in VF page.
Please give a proper solution for this.
HI All,
Even i need to display help text in force.com.Any Solution for this?
Your only option here is to roll your own help, as the ShowHeader attribute brings in the javascript that sets up the help. As you are specifying the help in the page anyway, it shouldn't be too difficult to put your own image in with a tooltip shown on hover via the alt/title attributes
I have a page that has the showheader set to false because it is a public site, but I'd like to add help to that. This thread let me know that the standard helptext does not apply to my page, but is there more documentation/examples related to the custom help mentioned?
You may want to take a look at Improved Help for Salesforce
http://improvedapps.com/improvedhelp/
Improved Help allows Help Authors to:
@Simon
Thanks for posting up the information. Can I ask that in future when you do this you identify your involvement with the company providing the app - something as simple as 'you might want to check out my company's app'.
Yes of course, will do in future, good point well made. Improved help is our app and we are an ISV partner to Salesforce.
Could anyone please help me inb this ?