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
MRK-NJMRK-NJ 

Displaying custom help fields on a visual force page

Hello,

 

I have am building an application using visualforce pages to create complex forms for medical interviews.

I have hundreds fields and 20 forms, so I am very concerned about future maintainability of the forms and keeping the labels and help text on the forms in sync with the salesforce fields/reports and page layouts.

 

So  I would like to display the label and custom help field data on the form for each field for example:

 

Field Label: Customer Primary Concern


Help Text: Write down the customers primary concern in his of her own words

 

I would like to display the following on the VisualForce page:

 

 Customer Primary Concern (Write down the customers primary concern in his of her own words)

     this is a text area

I want the help text to persist on the page and want to be able to format it with css, rather then be a hover button 

 

So ideally the code for this would look like this


<apex:outputtext value={"contact.Customer_Primary_Concern__c.Label"}>

(<apex:outputtext value={"contact.Customer_Primary_Concern__c.HelpText"}>)<br/>

<apex:inputTextarea value="{!contact.Customer_Primary_Concern__c}"/>


 How do I refer to the Label and Help text fields on a visualforce page.

 

 

Thank you so much for your help.

Cheers,

Martin

 

 

 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
SamuelDeRyckeSamuelDeRycke

Sorry, thought you'd figure that one out yourself, but here it is: 

 

$ObjectType.sOBJECT.fields.FIELD.inlineHelpText

 

Mark this as a solution if this fully answerd what you were looking for.

All Answers

SamuelDeRyckeSamuelDeRycke

You're not far off, this should work:

 

value="{!$ObjectType.SOBJECT.fields.FIELD.Label}"

 

MRK-NJMRK-NJ

Thank you so much for the response, I can see that works for the Label, but what about the custom Help Text?

 

Best,

Martin

SamuelDeRyckeSamuelDeRycke

Sorry, thought you'd figure that one out yourself, but here it is: 

 

$ObjectType.sOBJECT.fields.FIELD.inlineHelpText

 

Mark this as a solution if this fully answerd what you were looking for.

This was selected as the best answer
Simon ThompsonSimon Thompson

You may want to take a look at Improved Help for Salesforce

 

http://improvedapps.com/improvedhelp/

 

Improved Help allows Help Authors to:

 

  • Define rich custom help content and add context-sensitive links to repurpose underused remote 'Help Resources';
  • Provide Helped Users with a locally branded, custom help portal and Quick Access Menu to access Help Tools;
  • Push rich content, in context, direct to the point of need - in situ, embedded within helped Salesforce application pages.