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

HelpText Line Break
Hello,
I have a VF page where I am using pageBlockSection components. I am also including help text in these components but I can't figure out how to include line breaks in my help text. I know I can do them as part of the custom field help text, but I am limited to 255 characters and there are some fields where I need more. Does anyone know how to do this? My sample line is below:
<apex:pageBlockSectionItem helpText="This is a test<br>Testing<br>testing.">
Hi,
You can use the below code
<apex:pageBlock>
<apex:pageBlockSection>
<apex:pageblockSectionItem>
<span class="helpButtonOn" id="Name-_help">
<label>Name</label>
<img src="/s.gif" alt="" class="helpOrb" title=""/>
<script type="text/javascript">sfdcPage.setHelp('Name', 'First line <br/> Second line');</script>
</span>
<apex:inputField value="{!Account.Name}"/>
</apex:pageblockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
If this post is helpful please throw Kudos(Click on the start at left).If this post solves your problem kindly mark it as solution.
All Answers
http://boards.developerforce.com/t5/General-Development/New-line-in-bubble-Help-Text-of-visual-force-page/td-p/206759
Thanks Kiran. I saw that post and I've been researching how I might accomplish it, but have not had any luck. Would you have a sample of how it would work? Thanks.
http://www.chiragmehta.info/chirag/2009/01/14/help-bubble-hover-based-tooltip-visualforce/
http://shivasoft.in/blog/salesforce/salesforce-helptext-like-custom-tooltip-using-jquery/
Thanks again, but I don't have a problem getting a tooltip to show up. My issue is how to put a line break or carriage return within a tooltip. Those 2 links just show different ways to create the tooltip. Thanks
http://stackoverflow.com/questions/6502054/web-tooltip-universally-accepted-linebreak-character
Hi,
You can use the below code
<apex:pageBlock>
<apex:pageBlockSection>
<apex:pageblockSectionItem>
<span class="helpButtonOn" id="Name-_help">
<label>Name</label>
<img src="/s.gif" alt="" class="helpOrb" title=""/>
<script type="text/javascript">sfdcPage.setHelp('Name', 'First line <br/> Second line');</script>
</span>
<apex:inputField value="{!Account.Name}"/>
</apex:pageblockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
If this post is helpful please throw Kudos(Click on the start at left).If this post solves your problem kindly mark it as solution.
Thanks Puja. I inserted your code and while it gives me the help orb, it does not show the text in the script when I mouseover it. Thanks.
The code does the work!
Make sure you set the highlighted values. Best way will be setting the API name of the field there
Ah, I found the issue. I had my help text on separate lines to make it more readable and it wasn't being read. Thanks for all the help, it works now!
Creating HTML and playing with Javascript is quite risky because when Salesforce.com changes something it might be no longer supported.