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

Using custom field help in visual force
We are creating a form with input fields, and we want the ability to display the hover over help text for every input field. We are currently defining the input field within the <table> tag enveloped in a <pageBlock> but have not been able to display the help text using this method.
However, we also tried using <Page Block Section> to envelope the input fields and were able to display the hover over text, but were limited to using only two columns per section and were unable to define custom labels for the input fields. This forced us to switch to the <table>tag.
Is there a way for us to display the hover over text while using custom labels and having more than two columns?
How custom do you want the field labels to be?
Message Edited by Luke@TWS on 11-21-2008 06:31 AM
However if you need to specify your own labels I think you lose the hover text, though you can still specify it yourself. Use pageBlockSectionItem to supply your own label, and then use the helpText attribute to supply the helpText.
You should not need to drop into any <table> elements to get this to work.
<apex pageBlockSection columns="4">
<apex pageBlockSectionItem labelTitle="helo" helpText="andrew">
<b><apex:outputLabel value="Last Name"/></b>
</apex pageBlockSectionItem>
<apex:outputPanel >
<apex:inputField value="{!case.Last_Name__c}" />
</apex:outputPanel>
</apex pageBlockSectionItem>
</apex pageBlockSection>
If you only specify one child in your pBSI it's going to treat it like a field, thus it's not going to display your help text.
I tried using pageBlockSectionItem but get an error that says <pageBlockSectionItem> component may have no more than two child components
If you are looking to get the Help Text with the orange question mark bubble, you can do this:
The helpButton id is the object and field plus -_help as in Account.CustomerShipTo__c-_help
<TD class="labelCol"> <span class="helpButton" id="Account.CustomerShipTo__c-_help">Customer Ship To
<img class="helpOrb" src="/s.gif" alt="" title=""/>
<script type="text/javascript">
sfdcPage.setHelp('Account.CustomerShipTo__c', '{!$ObjectType.Account.Fields.CustomerShipTo__c.inlineHelpText}');
</script>
</span></TD>
That may work but if we change the help text javascript or the CSS that inserts the question mark bubble your page will break.
Using the pageBlockSectionItem is there a means to maitain the formatting of help text. For instance here I have muti line Help text defining the values of picklist. Like
A - Use this for
B - Use this for
C - Use this for.
How can I maintain this format in the Help Bubble Text of visual force page. The standard help is not suffice here as the help text exceeding 255 characters.
Thanks a lot, its a great help for us.