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
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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

PrashantLearnIT
Giga 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.

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************