Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I need to use helptext with one custom field in Visualforce but Salesforce it allows 255 characters in helptext with a field. One solution is to create an image of text and show that image onMouseOver. Can you suggest me other solutions?

share|improve this question
    
Why don't you create a new "Text Area" field with up to 32.768 characters? –  mast0r Feb 6 '13 at 7:08
    
@mast0r, it looks like Pankaj needs >255 characters for the hover-help-text, not the input field. –  Suman Krishna Saha Feb 6 '13 at 7:16
    
yes sumanKrishnasha –  Pankaj Feb 6 '13 at 7:22
add comment

2 Answers

up vote 6 down vote accepted

Use <apex:pageBlockSectionItem>, it has a helptext attribute that corresponds to the balloon. You can put your "long help" in a custom label for example so it can be translated to other languages like standard help texts.

<apex:pageBlockSectionItem helpText="Lorem ipsum ... (400+ chars)">
    <apex:outputLabel value="{!$ObjectType.Opportunity.fields.CurrencyIsoCode.Label}" />
    <apex:outputField value="{!Opportunity.CurrencyIsoCode}" />
</apex:pageBlockSectionItem>

Sample screenshot of long "Lorem ipsum" in a help tip.

share|improve this answer
    
Thanks so much:-) eyescream –  Pankaj Feb 6 '13 at 9:18
add comment

If you are competent in JavaScript and using JavaScript libraries,
use <apex:inputText title="LongHelpTextGoesHere" />
in your Visualforce page with either of the following:

  1. http://jquerytools.org/demos/tooltip/form.html
  2. http://jqueryui.com/tooltip/
share|improve this answer
2  
I'd say that's a huge overkill to use jQuery for something so simple. doxdesk.com/img/updates/20091116-so-large.gif ? ;) –  eyescream Feb 6 '13 at 9:23
    
@eyescream, funny screenshot in your comment! Agree with your answer to the question. I was not aware of the helpText attribute. –  Suman Krishna Saha Feb 6 '13 at 9:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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