Set a tooltip for a variable in a Catalog Client Script

Joe Weisiger
Giga Expert

Hello,

I am trying to set a tooltip for a Catalog Item Variable in a Variable Set through a client script.  I tried to set this using an onload client script with g_form.showFieldMsg but it is not working.  I am not sure if showFieldMsg is the correct line.

'Desktop_Computer_Name' is the variable name.  

'Test' would be the tooltip.

g_form.showFieldMsg('Desktop_Computer_Name','Test',);

Any help would be appreciated!

Thank you,

Joe

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Hi Joe,

You can't manipulate the actual tooltip portion of a variable dynamically via a script unless you use DOM manipulation. The showFieldMsg is a close option:

g_form.showFieldMsg('Desktop_Computer_Name','Test','info')

Choose from info, error or warning.

View solution in original post

1 REPLY 1

Kieran Anson
Kilo Patron

Hi Joe,

You can't manipulate the actual tooltip portion of a variable dynamically via a script unless you use DOM manipulation. The showFieldMsg is a close option:

g_form.showFieldMsg('Desktop_Computer_Name','Test','info')

Choose from info, error or warning.