The CreatorCon Call for Content is officially open! Get started here.

Hover over Help Text for Check Boxes

ljschwaberow
Giga Expert

Has anyone been successful in getting hover over text for check boxes?

1 ACCEPTED SOLUTION

If anyone wants to know how to do this here it is:


Client Script:


function onLoad() {


    //Type appropriate comment here, and begin script below


      gel('ni.IO:SYS_ID').title="Test to show when mouse is on the variable";


}


View solution in original post

13 REPLIES 13

Sorry to be more specific - a catalog variable check box. I don't see this 'Hint' option there.


Aha! I see there's a thread on this topic and some of the responses may be helpful for what you're trying to accomplish:



Can we show help text on hovering of catalog variables


Hi Mike,


I did read this thread and posted on it actually. I tried what was suggested: a client script with gel("IDVariable").title="Test to show when mouse is on the variable"; but I couldn't get it to work. One thing I came across was some functionality that exists in ServiceNow but I don't know how you go about changing it. If you take a look at the image I've provided, if you hover over a check box there is a hover over text that pops up. Have you ever seen where this can be changed?


find_real_file.png


If anyone wants to know how to do this here it is:


Client Script:


function onLoad() {


    //Type appropriate comment here, and begin script below


      gel('ni.IO:SYS_ID').title="Test to show when mouse is on the variable";


}


Hello Lindsey,



In the code you mentioned, i see "ni.", then "IO:", followed by the sys_id for the checkbox you want to display the tooltip on. What is ni? I believe the IO would be input/output. Just wondering if you have more information on your solution and how it works


function onLoad() {


          //Type appropriate comment here, and begin script below


          gel('ni.IO:SYS_ID').title="Test to show when mouse is on the variable";


}


The reason I ask about this is, I created a Catalog Client Script to perform this action on my checkbox variable. However, the tooltip is not displaying.



Thank you,



Kevin Eldridge