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
sdavidow9sdavidow9 

outputfield attribute title not working

Per the Developers guide:

 

title

The text displayed next to the output field, in addition to the field's label.

 

This attribute doesn't show up in my VF page.  

 

<apex:outputField value="{!myObject.myfield__c}" label="Hey, where does htis go?"/>

 

I want to add additional info to the label for this VF page, but not sure how to get it to show up where I want OR replace the label I have on the field.  Any ideas?

 

 

 

jwetzlerjwetzler

Sorry, I've asked to have this doc fixed before, I'll ask again.  Title is a tooltip, per HTML: http://www.w3schools.com/tags/att_standard_title.asp

 

Are you using outputField within pageBlockSection so that it automatically generates your label?  If not, you can use $ObjectType to get the field's label, or you can just put whatever text next to your field.  If you are using pageBlockSection and you want control over the label, check out pageBlockSectionItem.

sdavidow9sdavidow9

Sorry, I meant to say "Title" in my code (label doesn't work).

 

Either way, I don't get a tool tip to show.  Should it show with a "?" image as in standard pages?

 

I am using it within a pageblock section.  I'll try what you suggested below.

sdavidow9sdavidow9

Jill, thank you...This is what I wanted:

 

<apex:pageBlockSectionItem> <apex:outputLabel value="Account Name" for="account__name"/> <apex:outputFiled value="{!account.name}" id="account__name"/> </apex:pageBlockSectionItem>

 

 

 

jwetzlerjwetzler

Not tooltip in the field level help sense.  Tooltip in the HTML sense (see the link I posted earlier).  If you hovered over the field it should pop up.

 

Anyway I realize that's not what you actually needed.  Glad you got it working :)

Venkat PolisettiVenkat Polisetti

<apex:page standardController="Account">
    <apex:pageBlock title="My Content">
         <apex:pageBlockTable value="{!account.Contacts}" var="item">
                   <apex:column title="Contact name" value="{!item.name}"/>
                    <apex:column title="Contact Phone" value="{!item.phone}"/>
          </apex:pageBlockTable>
    </apex:pageBlock>
</apex:page>

 

Look at the code snippet above. It does not display the tooltip image (?) anywhere on the table. The description for the title attribute on apex:column documentation says "The text to display as a tooltip when the user's mouse pointer hovers over this component".

 

Eitther the documenation is wrong or am I missing some thing here?

 

Thanks,

Venkat Polisett