Can we populate Hint dynamically for a field in ServiceNow when we hover mouse over the field?

kBahu
Tera Expert

Need to populate Hint dynamically for a field in ServiceNow when we hover mouse over the field, any suggestions would be helpful.

kBahu_0-1734685884105.png

 

Thanks.

1 ACCEPTED SOLUTION

For everyone who wants to refer, below worked in scoped application

g_form.getControl('assigned_to').title = 'Test';
 
so looks like ''gel'' or ''document.getElementById()'' doesn't work in scoped app but ''g_form.getControl()'' works fine.

View solution in original post

16 REPLIES 16

Ankur Bawiskar
Tera Patron

@kBahu 

I won't recommend using DOM manipulation.

But if your requirement is to achieve it then ensure your onLoad client script has Isolate Script = False to allow DOM to run
If my response helped please mark it correct and close the thread so that it benefits future readers.

PrashantLearnIT
Tera Sage

HI @kBahu 

 

Please don't try any DOM manipulation, as it is not recommended, For dynamic change for hints implementation, you have to check whether it is required or skip that, try to think in terms of best practice as well.