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
chennachenna 

Displaying pop up Help text On VF Page

Hi,

 

Currently i am displaying help text on VF Page instead of field label names because field names are having many characters in it.

I need to display poup help text on dat VF page where i am displaying  help text instead field label.

 

  • Help text pop-up are having more than 255 characters in it.
  • Every field is having different description in it.

 

  • MY Question:Is there anyway i can display  pop up help text on VF Page?

 

  • Thanks in Advance.Plz help me out 
Best Answer chosen by Admin (Salesforce Developers) 
Rehan DawtRehan Dawt

Hi,

 

Hey there is one attribute in VF  which you be used in your case.

 

<apex:inputText title="Your help text" />

 

Title is one attribute in salesforce standard which gives a tool tip. So it can be used when you just over a mouse on the input text or input fields.

 

Thanks,

Rehan Dawt

All Answers

ajmerakavitaajmerakavita

You can use onMouseOver and display the message box with the content.

Devendra NataniDevendra Natani

Hello,

 

Please use the following sample code as a reference. You can simply use the helptext property of <apex:pageblockSectionItem> to display custom helptext on vf page.

 

<apex:page standardController="Account">
  <apex:form>
      <apex:pageBlock>
          <apex:pageBlockSection>
              <apex:pageBlockSectionItem helpText="Please enter account name">
                  <apex:outputLabel value="Name"></apex:outputLabel>
                  <apex:inputField value="{!Account.Name}"/>
              </apex:pageBlockSectionItem>
          </apex:pageBlockSection>
      </apex:pageBlock>
  </apex:form>
</apex:page>

 

Please let me know if there is any issue.

chennachenna

I already using help text to display on Vf Page instead of Field Label Name. Curently i need to get pop up help text for that 

 

Help text that i displayed on VF pag.

KlawateKlawate

You can use any custom image denoting info (like the one we see on standard salesforce page, the question mark)  using apex:image tag. For the tag there is a parameter 'title' which displayes text in form of a tooltip. 

 

This one will be similar to Help Text for any field in standard salesforce UI.

Rehan DawtRehan Dawt

Hi,

 

Hey there is one attribute in VF  which you be used in your case.

 

<apex:inputText title="Your help text" />

 

Title is one attribute in salesforce standard which gives a tool tip. So it can be used when you just over a mouse on the input text or input fields.

 

Thanks,

Rehan Dawt

This was selected as the best answer