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
Azrel Rahiman 11Azrel Rahiman 11 

visualforce page outputtext - add help text

Hi all,

I'm trying to learn and understand the development of visualforce page. New to development anyway.

So I'm trying to include a help text to an outputtext, do you think this is possible? Or is there any other workaround on this?
 
<apex:page standardController="Opportunity">

        <font color="red">
            <apex:outputText style="font-weight: bold;" 
            value="IMPORTANT: My reminder message here"/><br/>
        </font>

</apex:page>

// trying to add a help text to this outputText

 
brahmaji tammanabrahmaji tammana
Hi

Add pageBlock component to add help to that page.
Add title attribute to show the tooltip.
<apex:page standardController="Opportunity">
    <apex:pageBlock helpTitle="Help" helpUrl="www.google.com">
        <font color="red">
            <apex:outputText style="font-weight: bold;" 
                             value="IMPORTANT: My reminder message here" title="This is title" /><br/>
        </font>
    </apex:pageBlock>
</apex:page>


Thanks

Brahma

Shiva RajendranShiva Rajendran
Hi Azel ,
If you need only helpText 
<apex:pageBlock>
<apex:PageBlockSection>
<apex:pageBlockSectionItem HelpText="Your Help Text">
 <font color="red">
    <apex:outputText style="font-weight: bold;"
    value="IMPORTANT: My reminder message here"/><br/>
 </font>
</apex:pageBlockSectionItem>
</apex:PageBlockSection>
 </apex:pageBlock>
 
Azrel Rahiman 11Azrel Rahiman 11
@brahmajit

Thanks for the solution, but apparently the Help icon is way on the right. I think this will be difficult for user to locate.
Azrel Rahiman 11Azrel Rahiman 11
@shiva 

Thanks shiva, but when i try to use your code i get this error message. 

Error: <apex:pageBlockSectionItem> may have no more than 2 child components

Is there anything I did wrong?