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

Positioning a tooltip

I am using a tooltip component that uses sfdcPage.setHelp to populate it and handle the logic of when to show the help text. The problem that I am having with it is that it appears on the left side of the mouse and covers up the field that it corresponds to.


What I am wondering is if there is a way to shift the help text box to the right a specified number of pixels or something similar.


Thanks in advance for any help on this.


Hi mweiss,


I can't find documentation of sfdcPage.setHelp, but I imagine that maybe this rendes as an spam or something.

I sugget you to use firebug and try to find out how this renders, and then modify styles as you wish.


Sorry i can't help you more,




function showCustomHelp(ev,el,id) { 

                var help = this.getCustomHelp(id); 

                this.curTarget = el; 

                this.curTarget.parentNode.className = "helpButtonOn"; 

                if(this.displayDiv == null) 
                    this.displayDiv = document.createElement("DIV"); 
                this.displayDiv.className = "helpText"; 

                document.body.insertBefore(this.displayDiv, document.body.firstChild); 

       = (getObjY(el) + el.offsetHeight + 8) + 'px'; 

                this.displayDiv.innerHTML = help; 

                if (!this.helpFader){ 
                    this.helpFader = new MouseOverFadeHandler(null, this.displayDiv, false); 


                var left = (getObjX(el) + el.offsetWidth - this.displayDiv.offsetWidth); 
                if (left >= 0){ 
           = left + 'px'; 


 try this