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
RamboRambo 

Problem in display the help text of a field in visualforce(Immediate help reqd)

Hi Friends,

 

I had created a field by specifying its help text. Then I tried to display it in VF but wat happened was the bubble is getting displayed. When i tried to hover over the bubble, the help text is not getting displayed.. But its working in standard page. I tried to display the field using both <apex:pageblocksection> & <apex:pageblocksectionitem>....Help reqd immediately....

 

 

Thanks in advance....

RamboRambo

Hi Friends,

 

                     I found that the onload function which I am using in that VF is causing this issue.... Any suggestions on how to overcome this problem???...

bob_buzzardbob_buzzard

It sounds like you might be overwriting the Salesforce onload functionality.

 

Try adding your function to the existing onload handler.  Here's an example function that will allow you to do that:

 

 

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(nameOfSomeFunctionToRunOnPageLoad);
addLoadEvent(function() {
  /* more code to run on page load */
});

 

 

 

 

ministe2003ministe2003

We had the same problem so thanks very much for your advice bob!

I found that the standard onload script worked just the same with this simple method:

 

Change this, which is what we had before:

 

<script type="text/javascript">
window.onload = workaround; 

function workaround(){
	//do lots of work...
}

 to this:

 

<script type="text/javascript">
var originalOnLoad = window.onload;	//save original onload reference
window.onload = workaround; 

function workaround(){
	originalOnLoad();  //run the original onload first
	//do lots of work...
}

 

Seems to work in any browser

 

 

 

Steven

archCoolarchCool
Thank you ministe2003. You saved my Day!