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
UmapenUmapen 

Adding help text page link to sectionHeader? - Page Help does not exist

I have the following line in my Visual force page.

 

Code:

<apex:sectionHeader title="Custom Account View/Edit" subtitle="{!Account.name}" help="Test Help info"></apex:sectionHeader>


 

 

Section header has "Help for this page" link. When I click on the link
See the error message - Page Help does not exist. How can I make this page work?

Documentation has the following ::::::::::::
The URL for the page's help file.When this value is specified, a String
Help for this Page link automatically appears on the right side of
the colored title bar.

But I cannot see my help text in popup?
Where do I add the help file?
Do I have to write javascript to open my help file?

SuriSuri

Hi

 

The "help" attribute MUST be a URL i.e., URL to your Help Page which is either a Visualforce Page, or a Document or a Static Resource etc.

 

By giving:

<apex:sectionHeader title="Custom Account View/Edit" subtitle="{!Account.name}" help="Test Help info"></apex:sectionHeader>

 

This opens a page: https://na6.salesforce.com/Test Help info

 

and hence the Page doesn't exist Error occurs.

 

 

So you can either have your Help File in Visualforce page:

 

 <apex:sectionHeader title="Custom Account View/Edit" subtitle="{!Account.name}" help="/apex/Help_Page">

 

or save it as a Static Resource, and accordingly give the Resource Name:

 

<apex:sectionHeader title="Custom Account View/Edit" subtitle="{!Account.name}" help="{!$Resource.HelpFile}">